Commit bfb97855 authored by Peter Michaux's avatar Peter Michaux

ensure source files pass JSHint

parent 2a837ab2
/*jshint strict: false */
/*global maria, Router, checkit */
maria.on(window, 'load', function() {
var loading = document.getElementById('loading');
loading.parentNode.removeChild(loading);
......
/*jshint strict: false */
/*global maria, checkit */
maria.Controller.subclass(checkit, 'TodoController', {
properties: {
onClickDestroy: function() {
......
/*jshint strict: false */
/*global maria, checkit */
maria.Controller.subclass(checkit, 'TodosAppController', {
properties: {
onKeyupNewTodo: function(evt) {
......
/*jshint strict: false */
/*global maria, checkit */
maria.Model.subclass(checkit, 'TodoModel', {
properties: {
_title: '',
......
/*jshint strict: false */
/*global maria, checkit */
maria.SetModel.subclass(checkit, 'TodosModel', {
properties: {
_mode: 'all',
......@@ -29,8 +32,7 @@ maria.SetModel.subclass(checkit, 'TodosModel', {
});
},
isAllCompleted: function() {
return (this.length > 0) &&
(this.getCompleted().length === this.length);
return (this.length > 0) && (this.getCompleted().length === this.length);
},
markAllCompleted: function() {
this.forEach(function(todo) {
......
/*global checkit */
// In a full development environment this template would be expressed
// in a file containing only HTML and be compiled to the following as part
// of the server/build functionality.
......
/*global checkit */
// In a full development environment this template would be expressed
// in a file containing only HTML and be compiled to the following as part
// of the server/build functionality.
......
/*jshint strict: false */
/*global checkit */
checkit.isBlank = function(str) {
return /^\s*$/.test(str);
return (/^\s*$/).test(str);
};
checkit.escapeHTML = function(str) {
......
/*jshint strict: false */
/*global maria, aristocrat, checkit */
maria.ElementView.subclass(checkit, 'TodoView', {
uiActions: {
'click .destroy': 'onClickDestroy' ,
......
/*jshint strict: false */
/*global maria, aristocrat, checkit */
maria.SetView.subclass(checkit, 'TodosAppView', {
uiActions: {
'keyup #new-todo' : 'onKeyupNewTodo' ,
......
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