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
24a88ea3
Commit
24a88ea3
authored
Dec 16, 2014
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix AngularJS JSCS issues
parent
c043ee84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
examples/angularjs/js/services/todoStorage.js
examples/angularjs/js/services/todoStorage.js
+4
-2
No files found.
examples/angularjs/js/services/todoStorage.js
View file @
24a88ea3
...
...
@@ -30,7 +30,8 @@ angular.module('todomvc')
clearCompleted
:
function
()
{
var
originalTodos
=
store
.
todos
.
slice
(
0
);
var
completeTodos
=
[],
incompleteTodos
=
[];
var
completeTodos
=
[];
var
incompleteTodos
=
[];
store
.
todos
.
forEach
(
function
(
todo
)
{
if
(
todo
.
completed
)
{
completeTodos
.
push
(
todo
);
...
...
@@ -121,7 +122,8 @@ angular.module('todomvc')
clearCompleted
:
function
()
{
var
deferred
=
$q
.
defer
();
var
completeTodos
=
[],
incompleteTodos
=
[];
var
completeTodos
=
[];
var
incompleteTodos
=
[];
store
.
todos
.
forEach
(
function
(
todo
)
{
if
(
todo
.
completed
)
{
completeTodos
.
push
(
todo
);
...
...
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