Unreviewed, rolling out r216677.
[WebKit-https.git] / PerformanceTests / Speedometer / resources / todomvc / dependency-examples / flight / app / js / app.js
1 /*global define */
2 'use strict';
3
4 define([
5     './data/todos',
6     './data/stats',
7     './ui/new_item',
8     './ui/todo_list',
9     './ui/stats',
10     './ui/main_selector',
11     './ui/toggle_all'
12 ], function (TodosData, StatsData, NewItemUI, TodoListUI, StatsUI, MainSelectorUI, ToggleAllUI) {
13     var initialize = function () {
14         StatsData.attachTo(document);
15         TodosData.attachTo(document);
16         NewItemUI.attachTo('#new-todo');
17         MainSelectorUI.attachTo('#main');
18         StatsUI.attachTo('#footer');
19         ToggleAllUI.attachTo('#toggle-all');
20         TodoListUI.attachTo('#todo-list');
21
22         var dummyNodeToNotifyAppIsReady = document.createElement('div');
23         dummyNodeToNotifyAppIsReady.id = 'appIsReady';
24         document.body.appendChild(dummyNodeToNotifyAppIsReady);
25     };
26
27     return {
28         initialize: initialize
29     };
30 });