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
Sven Franck
todomvc
Commits
9a267f0a
Commit
9a267f0a
authored
Jan 24, 2014
by
Addy Osmani
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #788 from paulmillr/chapl
Chaplin 1.0.0.
parents
2808841a
16a38406
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1197 additions
and
994 deletions
+1197
-994
labs/dependency-examples/chaplin-brunch/app/controllers/index-controller.coffee
...es/chaplin-brunch/app/controllers/index-controller.coffee
+1
-1
labs/dependency-examples/chaplin-brunch/app/views/todos-view.coffee
...dency-examples/chaplin-brunch/app/views/todos-view.coffee
+1
-1
labs/dependency-examples/chaplin-brunch/bower.json
labs/dependency-examples/chaplin-brunch/bower.json
+2
-2
labs/dependency-examples/chaplin-brunch/public/app.js
labs/dependency-examples/chaplin-brunch/public/app.js
+1192
-989
labs/dependency-examples/chaplin-brunch/public/app.js.map
labs/dependency-examples/chaplin-brunch/public/app.js.map
+1
-1
No files found.
labs/dependency-examples/chaplin-brunch/app/controllers/index-controller.coffee
View file @
9a267f0a
...
...
@@ -7,7 +7,7 @@ module.exports = class IndexController extends Chaplin.Controller
# The method is executed before any controller actions.
# We compose structure in order for it to be rendered only once.
beforeAction
:
->
@
compo
se
'structure'
,
->
@
reu
se
'structure'
,
->
params
=
collection
:
mediator
.
todos
@
header
=
new
HeaderView
params
@
footer
=
new
FooterView
params
...
...
labs/dependency-examples/chaplin-brunch/app/views/todos-view.coffee
View file @
9a267f0a
...
...
@@ -23,7 +23,7 @@ module.exports = class TodosView extends CollectionView
toggleCompleted
:
(
event
)
->
isChecked
=
event
.
delegateTarget
.
checked
@
collection
.
e
ach
(
todo
)
->
todo
.
save
completed
:
isChecked
@
collection
.
forE
ach
(
todo
)
->
todo
.
save
completed
:
isChecked
clear
:
->
@
collection
.
getCompleted
().
forEach
(
model
)
->
...
...
labs/dependency-examples/chaplin-brunch/bower.json
View file @
9a267f0a
...
...
@@ -3,8 +3,8 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"todomvc-common"
:
"~0.1.6"
,
"chaplin"
:
"~
0.11.3
"
,
"exoskeleton"
:
"~0.
5.1
"
,
"chaplin"
:
"~
1.0.0
"
,
"exoskeleton"
:
"~0.
6.3
"
,
"backbone.localStorage"
:
"git://github.com/paulmillr/Backbone.localStorage.git#9c225b37bdea4ac21d4b2445fa8962fe74e3175b"
},
"overrides"
:
{
...
...
labs/dependency-examples/chaplin-brunch/public/app.js
View file @
9a267f0a
This diff is collapsed.
Click to expand it.
labs/dependency-examples/chaplin-brunch/public/app.js.map
View file @
9a267f0a
This diff is collapsed.
Click to expand it.
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