Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 7, 2012
1 parent 846dd50 commit 5d273d9
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions architecture-examples/angularjs-perf/index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ <h1>todos</h1>
<input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)"> <input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)">
<label for="toggle-all">Mark all as complete</label> <label for="toggle-all">Mark all as complete</label>
<ul id="todo-list"> <ul id="todo-list">
<li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}"> <li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}">
<div class="view"> <div class="view">
<input class="toggle" type="checkbox" ng-model="todo.completed" ng-change="todoCompleted(todo)"> <input class="toggle" type="checkbox" ng-model="todo.completed" ng-change="todoCompleted(todo)">
<label ng-dblclick="editTodo(todo)">{{todo.title}}</label> <label ng-dblclick="editTodo(todo)">{{todo.title}}</label>
<button class="destroy" ng-click="removeTodo(todo)"></button> <button class="destroy" ng-click="removeTodo(todo)"></button>
</div> </div>
<form ng-submit="doneEditing(todo)"> <form ng-submit="doneEditing(todo)">
Expand Down
4 changes: 2 additions & 2 deletions architecture-examples/angularjs/index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ <h1>todos</h1>
<input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)"> <input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)">
<label for="toggle-all">Mark all as complete</label> <label for="toggle-all">Mark all as complete</label>
<ul id="todo-list"> <ul id="todo-list">
<li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}"> <li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}">
<div class="view"> <div class="view">
<input class="toggle" type="checkbox" ng-model="todo.completed"> <input class="toggle" type="checkbox" ng-model="todo.completed">
<label ng-dblclick="editTodo(todo)">{{todo.title}}</label> <label ng-dblclick="editTodo(todo)">{{todo.title}}</label>
<button class="destroy" ng-click="removeTodo(todo)"></button> <button class="destroy" ng-click="removeTodo(todo)"></button>
</div> </div>
<form ng-submit="doneEditing(todo)"> <form ng-submit="doneEditing(todo)">
Expand Down
2 changes: 1 addition & 1 deletion architecture-examples/emberjs/js/app.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions architecture-examples/emberjs/js/views/application.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion architecture-examples/yui/js/views/todoview.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ YUI.add('todo-view', function (Y) {
'.toggle': { '.toggle': {
click: 'toggleComplete' click: 'toggleComplete'
}, },
'label': { 'label': {
dblclick: 'edit' dblclick: 'edit'
}, },
'.edit': { '.edit': {
Expand Down
8 changes: 4 additions & 4 deletions dependency-examples/emberjs_require/js/app.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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();
} }
Expand Down
4 changes: 2 additions & 2 deletions labs/dependency-examples/angularjs_require/index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ <h1>todos</h1>
<input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)"> <input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)">
<label for="toggle-all">Mark all as complete</label> <label for="toggle-all">Mark all as complete</label>
<ul id="todo-list"> <ul id="todo-list">
<li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}"> <li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}">
<div class="view"> <div class="view">
<input class="toggle" type="checkbox" ng-model="todo.completed"> <input class="toggle" type="checkbox" ng-model="todo.completed">
<label ng-dblclick="editTodo(todo)">{{todo.title}}</label> <label ng-dblclick="editTodo(todo)">{{todo.title}}</label>
<button class="destroy" ng-click="removeTodo(todo)"></button> <button class="destroy" ng-click="removeTodo(todo)"></button>
</div> </div>
<form ng-submit="doneEditing(todo)"> <form ng-submit="doneEditing(todo)">
Expand Down

0 comments on commit 5d273d9

Please sign in to comment.