This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global jQuery, Handlebars, Router */ | |
jQuery(function ($) { | |
'use strict'; | |
Handlebars.registerHelper('eq', function (a, b, options) { | |
return a === b ? options.fn(this) : options.inverse(this); | |
}); | |
var ENTER_KEY = 13; | |
var ESCAPE_KEY = 27; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runWithDebugger(callback, arg1) { | |
if (Array.isArray(arg1)) { | |
debugger; | |
return callback.apply(null, arg1); | |
} else { | |
debugger; | |
return callback(arg1); | |
} | |
}; |