Unreviewed, rolling out r216677.
[WebKit-https.git] / PerformanceTests / Speedometer / resources / todomvc / dependency-examples / flight / flight / app / js / page / 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
23     return {
24         initialize: initialize
25     };
26 });