Sha256: e440e6bf59254d1dffb0db17c7bbb445ec367c775e814225e3c52d69e8fb097b
Contents?: true
Size: 442 Bytes
Versions: 5
Compression:
Stored size: 442 Bytes
Contents
// console.log('Loading Metadata...') Spontaneous.Metadata = (function($, S) { var ajax = S.Ajax; var loaded = function(callback) { return function(metadata) { S.Types.loaded(metadata.types); S.User.loaded(metadata.user); S.Services.loaded(metadata.services); if (callback) { callback(metadata); } }; }; return { load: function(onComplete) { ajax.get('/site', loaded(onComplete)); } }; }(jQuery, Spontaneous));
Version data entries
5 entries across 5 versions & 1 rubygems