This file contains hidden or 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 (window, Function, $, YourNamespace) { | |
"use strict"; | |
if (Function.prototype.bind && typeof console == "object" && typeof console.log == "object") { | |
var logFns = ["log", "info", "warn", "error", "assert", "dir", "clear", "profile", "profileEnd"]; | |
$.each(logFns, function (i, method) { | |
console[method] = Function.prototype.call.bind(console[method], console); | |
}); | |
} |
This file contains hidden or 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 (Handlebars, moment) { | |
"use strict"; | |
/** | |
* Format an ISO date using Moment.js | |
* http://momentjs.com/ | |
* moment syntax example: moment(Date("2013-03-30T19:45:23")).format("MMMM YYYY") | |
* usage: {{dateFormat somedate format="MMMM YYYY"}} | |
*/ | |
Handlebars.registerHelper('dateFormat', function (context, block) { |