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 @@
{{/if}}
</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>
YUI({
groups: {
......@@ -62,26 +62,22 @@
base: './js/',
modules: {
'todo': {
path: 'models/todo.js',
requires: ['gallery-model-sync-local', 'model']
path: 'models/todo.js'
},
'todo-list': {
path: 'models/todolist.js',
requires: ['gallery-model-sync-local', 'model-list', 'todo']
path: 'models/todolist.js'
},
'todo-view': {
path: 'views/todoview.js',
requires: ['view', 'handlebars']
path: 'views/todoview.js'
},
'todo-app': {
path: 'app.js',
requires: ['app', 'todo-list', 'todo-view']
path: 'app.js'
}
}
}
}
}).use('todo-app', function (Y) {
var app = new Y.TodoMVC.TodoApp();
new Y.TodoMVC.TodoApp();
});
</script>
</body>
......
......@@ -157,7 +157,7 @@ YUI.add('todo-app', function (Y) {
var allCheckbox = this.get('allCheckbox');
var completed = allCheckbox.get('checked');
Y.Array.each(todoList.toArray(), function (todo) {
todoList.each(function (todo) {
todo.save({completed: completed});
});
},
......@@ -230,7 +230,6 @@ YUI.add('todo-app', function (Y) {
'app',
'todo-list',
'todo-view',
'node',
'event-focus'
'node'
]
});
......@@ -95,6 +95,7 @@ YUI.add('todo-view', function (Y) {
}, '@VERSION@', {
requires: [
'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