Commit 5d273d99 authored by Sindre Sorhus's avatar Sindre Sorhus

Minor cleanup

parent 846dd50d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
'use strict'; 'use strict';
win.Todos = Ember.Application.create({ win.Todos = Ember.Application.create({
VERSION: '0.2', VERSION: '1.0',
rootElement: '#todoapp', rootElement: '#todoapp',
storeNamespace: 'todos-emberjs', storeNamespace: 'todos-emberjs',
// Extend to inherit outlet support // Extend to inherit outlet support
......
...@@ -60,13 +60,13 @@ ...@@ -60,13 +60,13 @@
templateName: 'filtersTemplate', templateName: 'filtersTemplate',
filterBinding: 'controller.namespace.entriesController.filterBy', filterBinding: 'controller.namespace.entriesController.filterBy',
isAll: function() { isAll: function() {
return !!Ember.empty( this.get('filter') ); return Ember.empty( this.get('filter') );
}.property( 'filter' ), }.property( 'filter' ),
isActive: function() { isActive: function() {
return !!( this.get('filter') === 'active' ); return this.get('filter') === 'active';
}.property('filter'), }.property('filter'),
isCompleted: function() { isCompleted: function() {
return !!( this.get('filter') === 'completed' ); return this.get('filter') === 'completed';
}.property('filter') }.property('filter')
}), }),
clearBtnView: Ember.View.create({ clearBtnView: Ember.View.create({
......
...@@ -22,16 +22,16 @@ define( 'app', [ ...@@ -22,16 +22,16 @@ define( 'app', [
'ember' 'ember'
], function( Router, Store, EntriesController, ApplicationView ) { ], function( Router, Store, EntriesController, ApplicationView ) {
var App = Ember.Application.create({ var App = Ember.Application.create({
VERSION: '0.2', VERSION: '1.0',
rootElement: '#todoapp', rootElement: '#todoapp',
// Load routes // Load routes
Router: Router, Router: Router,
// Extend to inherit outlet support // Extend to inherit outlet support
ApplicationController: Ember.Controller.extend(), ApplicationController: Ember.Controller.extend(),
ApplicationView: ApplicationView, ApplicationView: ApplicationView,
entriesController: EntriesController.create( entriesController: EntriesController.create({
{ store: new Store( 'todos-emberjs' ) } store: new Store('todos-emberjs')
), }),
ready: function() { ready: function() {
this.initialize(); this.initialize();
} }
......
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