summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/dependency-examples/flight/flight/app/js/page/app.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/dependency-examples/flight/flight/app/js/page/app.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/dependency-examples/flight/flight/app/js/page/app.js b/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/dependency-examples/flight/flight/app/js/page/app.js
new file mode 100644
index 0000000000..61733a3d83
--- /dev/null
+++ b/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/dependency-examples/flight/flight/app/js/page/app.js
@@ -0,0 +1,26 @@
+/*global define */
+'use strict';
+
+define([
+ 'data/todos',
+ 'data/stats',
+ 'ui/new_item',
+ 'ui/todo_list',
+ 'ui/stats',
+ 'ui/main_selector',
+ 'ui/toggle_all'
+], function (TodosData, StatsData, NewItemUI, TodoListUI, StatsUI, MainSelectorUI, ToggleAllUI) {
+ var initialize = function () {
+ StatsData.attachTo(document);
+ TodosData.attachTo(document);
+ NewItemUI.attachTo('#new-todo');
+ MainSelectorUI.attachTo('#main');
+ StatsUI.attachTo('#footer');
+ ToggleAllUI.attachTo('#toggle-all');
+ TodoListUI.attachTo('#todo-list');
+ };
+
+ return {
+ initialize: initialize
+ };
+});