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
466147a1
Commit
466147a1
authored
Jul 28, 2013
by
Paul Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use CSS for filtering in Chaplin-brunch.
parent
b4e7bc94
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
20 deletions
+3
-20
labs/dependency-examples/chaplin-brunch/app/views/filters.css
.../dependency-examples/chaplin-brunch/app/views/filters.css
+0
-5
labs/dependency-examples/chaplin-brunch/app/views/todo-view.coffee
...ndency-examples/chaplin-brunch/app/views/todo-view.coffee
+1
-2
labs/dependency-examples/chaplin-brunch/public/app.css
labs/dependency-examples/chaplin-brunch/public/app.css
+0
-8
labs/dependency-examples/chaplin-brunch/public/app.css.map
labs/dependency-examples/chaplin-brunch/public/app.css.map
+0
-1
labs/dependency-examples/chaplin-brunch/public/app.js
labs/dependency-examples/chaplin-brunch/public/app.js
+1
-3
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/views/filters.css
deleted
100644 → 0
View file @
b4e7bc94
#todoapp
.filter-active
#todo-list
.completed
{
display
:
none
;
}
#todoapp
.filter-completed
#todo-list
.active
{
display
:
none
;
}
labs/dependency-examples/chaplin-brunch/app/views/todo-view.coffee
View file @
466147a1
...
...
@@ -19,8 +19,7 @@ module.exports = class TodoView extends View
super
# Reset classes, re-add the appropriate ones.
@
$el
.
removeClass
'active completed'
className
=
if
@
model
.
get
(
'completed'
)
then
'completed'
else
'active'
@
$el
.
addClass
className
@
$el
.
toggle
@
model
.
get
(
'completed'
)
destroy
:
=>
@
model
.
destroy
()
...
...
labs/dependency-examples/chaplin-brunch/public/app.css
deleted
100644 → 0
View file @
b4e7bc94
#todoapp
.filter-active
#todo-list
.completed
{
display
:
none
;
}
#todoapp
.filter-completed
#todo-list
.active
{
display
:
none
;
}
/*@ sourceMappingURL=app.css.map*/
\ No newline at end of file
labs/dependency-examples/chaplin-brunch/public/app.css.map
deleted
100644 → 0
View file @
b4e7bc94
{"version":3,"file":"public/app.css","sources":["app/views/filters.css"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA","sourcesContent":["#todoapp.filter-active #todo-list .completed {\n display: none; }\n\n#todoapp.filter-completed #todo-list .active {\n display: none; }\n"]}
\ No newline at end of file
labs/dependency-examples/chaplin-brunch/public/app.js
View file @
466147a1
...
...
@@ -15470,11 +15470,9 @@ module.exports = TodoView = (function(_super) {
TodoView
.
prototype
.
tagName
=
'
li
'
;
TodoView
.
prototype
.
render
=
function
()
{
var
className
;
TodoView
.
__super__
.
render
.
apply
(
this
,
arguments
);
this
.
$el
.
removeClass
(
'
active completed
'
);
className
=
this
.
model
.
get
(
'
completed
'
)
?
'
completed
'
:
'
active
'
;
return
this
.
$el
.
addClass
(
className
);
return
this
.
$el
.
toggle
(
this
.
model
.
get
(
'
completed
'
));
};
TodoView
.
prototype
.
destroy
=
function
()
{
...
...
labs/dependency-examples/chaplin-brunch/public/app.js.map
View file @
466147a1
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