Commit 9f3a2b49 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Make JSHint and JSCS pass on the jQuery example

No big deals but makes sense with the new CI in place
parent 66f2ac3f
/*global jQuery, Handlebars */ /*global jQuery, Handlebars, Router */
jQuery(function ($) { jQuery(function ($) {
'use strict'; 'use strict';
Handlebars.registerHelper('eq', function(a, b, options) { Handlebars.registerHelper('eq', function (a, b, options) {
return a === b ? options.fn(this) : options.inverse(this); return a === b ? options.fn(this) : options.inverse(this);
}); });
...@@ -44,7 +44,7 @@ jQuery(function ($) { ...@@ -44,7 +44,7 @@ jQuery(function ($) {
this.cacheElements(); this.cacheElements();
this.bindEvents(); this.bindEvents();
Router({ new Router({
'/:filter': function (filter) { '/:filter': function (filter) {
this.filter = filter; this.filter = filter;
this.render(); this.render();
......
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