Commit e1843aab authored by Sindre Sorhus's avatar Sindre Sorhus

Ember.js + require app: cleanup

parent 93a7b965
# Ember.js + Require.js • [TodoMVC](http://todomvc.com) # Ember.js + Require.js • [TodoMVC](http://todomvc.com)
## Running tests ## Running tests
To fire specs runner, append `#specs` to the url in address bar, To fire specs runner, append `#specs` to the url in address bar, and reload the webpage.
and reload the webpage.
## Credit ## Credit
Initial release by @tomdale. Initial release by @tomdale.
Refactoring and maintenance by @stas. Refactoring and maintenance by @stas.
\ No newline at end of file
...@@ -19,11 +19,12 @@ ...@@ -19,11 +19,12 @@
<p>Double-click to edit a todo</p> <p>Double-click to edit a todo</p>
<p>Template by <a href="http://sindresorhus.com">Sindre Sorhus</a></p> <p>Template by <a href="http://sindresorhus.com">Sindre Sorhus</a></p>
<p> <p>
Created by <a href="http://github.com/tomdale/">Tom Dale</a>, Created by
<a href="http://github.com/stas/">Стас Сушков</a> <a href="http://github.com/tomdale">Tom Dale</a>,
<a href="http://github.com/stas">Стас Сушков</a>
</p> </p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p> <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer> </footer>
<script data-main="js/app.js" src="js/lib/require/require.js"></script> <script data-main="js/app.js" src="js/lib/require/require.js"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -51,7 +51,7 @@ define('app/controllers/entries', ['ember'], ...@@ -51,7 +51,7 @@ define('app/controllers/entries', ['ember'],
this.setEach( 'completed', value ); this.setEach( 'completed', value );
return value; return value;
} else { } else {
return !!this.get( 'length' ) && return !!this.get( 'length' ) &&
this.everyProperty( 'completed', true ); this.everyProperty( 'completed', true );
} }
}.property( '@each.completed' ), }.property( '@each.completed' ),
...@@ -66,4 +66,4 @@ define('app/controllers/entries', ['ember'], ...@@ -66,4 +66,4 @@ define('app/controllers/entries', ['ember'],
} }
}); });
} }
); );
\ No newline at end of file
...@@ -117,4 +117,4 @@ define('app/controllers/todos', [ ...@@ -117,4 +117,4 @@ define('app/controllers/todos', [
} }
}); });
} }
); );
\ No newline at end of file
...@@ -77,4 +77,4 @@ define('app/models/store', [ ...@@ -77,4 +77,4 @@ define('app/models/store', [
}; };
}; };
} }
); );
\ No newline at end of file
...@@ -17,4 +17,4 @@ define('app/models/todo', ['ember'], ...@@ -17,4 +17,4 @@ define('app/models/todo', ['ember'],
}.observes( 'title', 'completed' ) }.observes( 'title', 'completed' )
}); });
} }
); );
\ No newline at end of file
...@@ -62,4 +62,4 @@ describe( 'controllers/todos', function() { ...@@ -62,4 +62,4 @@ describe( 'controllers/todos', function() {
done(); done();
}); });
}); });
\ No newline at end of file
...@@ -28,4 +28,4 @@ describe( 'models/store', function() { ...@@ -28,4 +28,4 @@ describe( 'models/store', function() {
store.remove( todo ); store.remove( todo );
}); });
}); });
\ No newline at end of file
...@@ -26,4 +26,4 @@ describe( 'views/*', function() { ...@@ -26,4 +26,4 @@ describe( 'views/*', function() {
}); });
}); });
}); });
\ No newline at end of file
Clear completed ({{completedCount}}) Clear completed ({{completedCount}})
\ No newline at end of file
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
{{else}} {{else}}
{{view Todos.todosController.todoEditor todoBinding="content" valueBinding="content.title"}} {{view Todos.todosController.todoEditor todoBinding="content" valueBinding="content.title"}}
{{/unless}} {{/unless}}
{{/collection}} {{/collection}}
\ No newline at end of file
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