Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
ba4b1496
Commit
ba4b1496
authored
Jul 14, 2013
by
cam song
Committed by
Sindre Sorhus
Jul 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close GH-629: Update YUI.
parent
777a74ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
architecture-examples/yui/index.html
architecture-examples/yui/index.html
+6
-10
architecture-examples/yui/js/app.js
architecture-examples/yui/js/app.js
+2
-3
architecture-examples/yui/js/views/todoview.js
architecture-examples/yui/js/views/todoview.js
+2
-1
No files found.
architecture-examples/yui/index.html
View file @
ba4b1496
...
...
@@ -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>
...
...
architecture-examples/yui/js/app.js
View file @
ba4b1496
...
...
@@ -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
'
]
});
architecture-examples/yui/js/views/todoview.js
View file @
ba4b1496
...
...
@@ -95,6 +95,7 @@ YUI.add('todo-view', function (Y) {
},
'
@VERSION@
'
,
{
requires
:
[
'
view
'
,
'
handlebars
'
'
handlebars
'
,
'
event-focus
'
]
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment