Commit 24a88ea3 authored by Pascal Hartig's avatar Pascal Hartig

Fix AngularJS JSCS issues

parent c043ee84
......@@ -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);
......
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