Commit ba4b1496 authored by cam song's avatar cam song Committed by Sindre Sorhus

Close GH-629: Update YUI.

parent 777a74ae
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
{{/if}} {{/if}}
</script> </script>
<script src="../../assets/base.js"></script> <script src="../../assets/base.js"></script>
<script src="http://yui.yahooapis.com/3.8.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.3/build/yui/yui-min.js"></script>
<script> <script>
YUI({ YUI({
groups: { groups: {
...@@ -62,26 +62,22 @@ ...@@ -62,26 +62,22 @@
base: './js/', base: './js/',
modules: { modules: {
'todo': { 'todo': {
path: 'models/todo.js', path: 'models/todo.js'
requires: ['gallery-model-sync-local', 'model']
}, },
'todo-list': { 'todo-list': {
path: 'models/todolist.js', path: 'models/todolist.js'
requires: ['gallery-model-sync-local', 'model-list', 'todo']
}, },
'todo-view': { 'todo-view': {
path: 'views/todoview.js', path: 'views/todoview.js'
requires: ['view', 'handlebars']
}, },
'todo-app': { 'todo-app': {
path: 'app.js', path: 'app.js'
requires: ['app', 'todo-list', 'todo-view']
} }
} }
} }
} }
}).use('todo-app', function (Y) { }).use('todo-app', function (Y) {
var app = new Y.TodoMVC.TodoApp(); new Y.TodoMVC.TodoApp();
}); });
</script> </script>
</body> </body>
......
...@@ -157,7 +157,7 @@ YUI.add('todo-app', function (Y) { ...@@ -157,7 +157,7 @@ YUI.add('todo-app', function (Y) {
var allCheckbox = this.get('allCheckbox'); var allCheckbox = this.get('allCheckbox');
var completed = allCheckbox.get('checked'); var completed = allCheckbox.get('checked');
Y.Array.each(todoList.toArray(), function (todo) { todoList.each(function (todo) {
todo.save({completed: completed}); todo.save({completed: completed});
}); });
}, },
...@@ -230,7 +230,6 @@ YUI.add('todo-app', function (Y) { ...@@ -230,7 +230,6 @@ YUI.add('todo-app', function (Y) {
'app', 'app',
'todo-list', 'todo-list',
'todo-view', 'todo-view',
'node', 'node'
'event-focus'
] ]
}); });
...@@ -95,6 +95,7 @@ YUI.add('todo-view', function (Y) { ...@@ -95,6 +95,7 @@ YUI.add('todo-view', function (Y) {
}, '@VERSION@', { }, '@VERSION@', {
requires: [ requires: [
'view', 'view',
'handlebars' 'handlebars',
'event-focus'
] ]
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment