Sha256: de8658b468a30ab6e646388acf3c4e93fcc8c6b684320b44e04582d33e2ceec5

Contents?: true

Size: 841 Bytes

Versions: 6

Compression:

Stored size: 841 Bytes

Contents

// console.log("Loading Init...");


Spontaneous.Init = (function($, S) {

	return function() {

		var location = S.Location, top_bar = S.TopBar, content_area = S.ContentArea, b = S.Dom.body();

		location.watch('location', top_bar.location_changed.bind(top_bar));
		location.watch('location', content_area.location_changed.bind(content_area));

		top_bar.watch('mode',       content_area.display.bind(content_area));
		top_bar.watch('mode',       location.view_mode_changed.bind(location));

		S.Editing.watch('page', location.page_loaded.bind(location));
		S.Editing.watch('path', location.path_changed.bind(location));

		b.append(top_bar.panel());
		b.append(content_area.init());
		b.append(S.StatusBar.init());

		S.Metadata.load(function() {
			location.init(function() {
				top_bar.init();
			});
		});
	};
}(jQuery, Spontaneous));

Version data entries

6 entries across 6 versions & 1 rubygems

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