Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor cleanup

  • Loading branch information...
commit 5d273d99f9e0fced0de7b15d7a70464f7ae838ee 1 parent 846dd50
@sindresorhus sindresorhus authored
View
4 architecture-examples/angularjs-perf/index.html
@@ -23,10 +23,10 @@
<input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)">
<label for="toggle-all">Mark all as complete</label>
<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">
<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>
</div>
<form ng-submit="doneEditing(todo)">
View
4 architecture-examples/angularjs/index.html
@@ -23,10 +23,10 @@
<input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)">
<label for="toggle-all">Mark all as complete</label>
<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">
<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>
</div>
<form ng-submit="doneEditing(todo)">
View
2  architecture-examples/emberjs/js/app.js
@@ -2,7 +2,7 @@
'use strict';
win.Todos = Ember.Application.create({
- VERSION: '0.2',
+ VERSION: '1.0',
rootElement: '#todoapp',
storeNamespace: 'todos-emberjs',
// Extend to inherit outlet support
View
6 architecture-examples/emberjs/js/views/application.js
@@ -60,13 +60,13 @@
templateName: 'filtersTemplate',
filterBinding: 'controller.namespace.entriesController.filterBy',
isAll: function() {
- return !!Ember.empty( this.get('filter') );
+ return Ember.empty( this.get('filter') );
}.property( 'filter' ),
isActive: function() {
- return !!( this.get('filter') === 'active' );
+ return this.get('filter') === 'active';
}.property('filter'),
isCompleted: function() {
- return !!( this.get('filter') === 'completed' );
+ return this.get('filter') === 'completed';
}.property('filter')
}),
clearBtnView: Ember.View.create({
View
2  architecture-examples/yui/js/views/todoview.js
@@ -16,7 +16,7 @@ YUI.add('todo-view', function (Y) {
'.toggle': {
click: 'toggleComplete'
},
- 'label': {
+ 'label': {
dblclick: 'edit'
},
'.edit': {
View
8 dependency-examples/emberjs_require/js/app.js
@@ -22,16 +22,16 @@ define( 'app', [
'ember'
], function( Router, Store, EntriesController, ApplicationView ) {
var App = Ember.Application.create({
- VERSION: '0.2',
+ VERSION: '1.0',
rootElement: '#todoapp',
// Load routes
Router: Router,
// Extend to inherit outlet support
ApplicationController: Ember.Controller.extend(),
ApplicationView: ApplicationView,
- entriesController: EntriesController.create(
- { store: new Store( 'todos-emberjs' ) }
- ),
+ entriesController: EntriesController.create({
+ store: new Store('todos-emberjs')
+ }),
ready: function() {
this.initialize();
}
View
4 labs/dependency-examples/angularjs_require/index.html
@@ -32,10 +32,10 @@
<input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)">
<label for="toggle-all">Mark all as complete</label>
<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">
<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>
</div>
<form ng-submit="doneEditing(todo)">
Please sign in to comment.
Something went wrong with that request. Please try again.