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

Version Path
spontaneous-0.2.0.beta1 application/js/metadata.js
spontaneous-0.2.0.alpha7 application/js/metadata.js
spontaneous-0.2.0.alpha6 application/js/metadata.js
spontaneous-0.2.0.alpha5 application/js/metadata.js
spontaneous-0.2.0.alpha4 application/js/metadata.js
spontaneous-0.2.0.alpha3 application/js/metadata.js