1
0
mirror of https://github.com/danbee/tube-status-server synced 2025-03-04 08:39:12 +00:00
tube-status-server/public/javascripts/app.js
2013-01-31 11:39:12 +00:00

24 lines
609 B
JavaScript

define(['backbone',
'mustache',
'collections/lines',
'views/chrome',
'views/main',
'views/line_list'],
function(Backbone, Mustache, LinesCollection, Chrome, Main, LineList) {
return {
initialize: function() {
lines = new LinesCollection;
// initialise chrome. this will render appropriate navbar and tabbar for the platform.
chrome = new Chrome({ collection: lines });
main = new Main({ collection: lines });
lineList = new LineList({ collection: lines });
//lines.url = lines.urls.now;
lines.fetch();
}
};
});