Sha256: 52299e13bab13a347bcdd5e4e39183fe09cd814c4351d97e713960c52a5d1c40
Contents?: true
Size: 444 Bytes
Versions: 6
Compression:
Stored size: 444 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.call(); }; }; }; return { load: function(onComplete) { ajax.get('/metadata', loaded(onComplete)); } }; }(jQuery, Spontaneous));
Version data entries
6 entries across 6 versions & 1 rubygems