mirror of
https://github.com/danbee/tube-status-server
synced 2025-03-04 08:39:12 +00:00
19 lines
430 B
JavaScript
19 lines
430 B
JavaScript
define(['backbone',
|
|
'mustache',
|
|
'collections/lines',
|
|
'views/main',
|
|
'views/line_list'],
|
|
function(Backbone, Mustache, LinesCollection, Main, LineList) {
|
|
return {
|
|
initialize: function() {
|
|
|
|
lines = new LinesCollection;
|
|
main = new Main({ collection: lines });
|
|
lineList = new LineList({ collection: lines });
|
|
lines.url = lines.urls.now;
|
|
|
|
lines.fetch();
|
|
}
|
|
};
|
|
});
|