Commit 1abb3cc2 authored by Sindre Sorhus's avatar Sindre Sorhus

Funnyface.js: Indentation

parent 158848fb
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
(function( window ) { (function( window ) {
'use strict'; 'use strict';
// represents a single todo item // represents a single todo item
var Todo = o_O.model.extend({ var Todo = o_O.model.extend({
title: '', title: '',
completed: false completed: false
}, },
...@@ -56,10 +56,10 @@ var Todo = o_O.model.extend({ ...@@ -56,10 +56,10 @@ var Todo = o_O.model.extend({
} }
} }
} }
); );
// main application // main application
var TodoApp = o_O.model.extend({ var TodoApp = o_O.model.extend({
current: '', current: '',
completedCount: 0, completedCount: 0,
filter: '' filter: ''
...@@ -123,10 +123,9 @@ var TodoApp = o_O.model.extend({ ...@@ -123,10 +123,9 @@ var TodoApp = o_O.model.extend({
pluralize: function( word, count ) { pluralize: function( word, count ) {
return word + ( count === 1 ? '' : 's' ); return word + ( count === 1 ? '' : 's' );
} }
} });
);
function main() { function main() {
// load todos // load todos
var i, l, var i, l,
todos = []; todos = [];
...@@ -159,10 +158,10 @@ function main() { ...@@ -159,10 +158,10 @@ function main() {
.addClass('selected'); .addClass('selected');
}) })
.start(); .start();
} }
// a custom binding to handle the enter key // a custom binding to handle the enter key
o_O.bindings.enterKey = function( func, $el ) { o_O.bindings.enterKey = function( func, $el ) {
var ENTER_KEY = 13, var ENTER_KEY = 13,
context = this; context = this;
...@@ -171,11 +170,11 @@ o_O.bindings.enterKey = function( func, $el ) { ...@@ -171,11 +170,11 @@ o_O.bindings.enterKey = function( func, $el ) {
func.call( context ); func.call( context );
} }
}); });
}; };
o_O.bindingTypes.enterKey = 'outbound'; o_O.bindingTypes.enterKey = 'outbound';
// kick it off // kick it off
main(); main();
})( window ); })( window );
\ 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