thelounge/client/js/libs/handlebars/equal.js
2014-07-20 14:24:46 -07:00

9 lines
149 B
JavaScript

Handlebars.registerHelper(
"equal", function(a, b, opt) {
a = a.toString();
b = b.toString();
if (a == b) {
return opt.fn(this);
}
}
);