Sha256: af8f77111e19b72b158be739b82102a7244e75c6a66c9f2dd93af4a68fc51c60
Contents?: true
Size: 857 Bytes
Versions: 4
Compression:
Stored size: 857 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(metadata) { location.init(function() { top_bar.init(metadata); }); }); }; }(jQuery, Spontaneous));
Version data entries
4 entries across 4 versions & 1 rubygems