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

Funnyface.js: Indentation

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