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