thelounge/client/js/libs/handlebars/diff.js

13 lines
173 B
JavaScript
Raw Normal View History

2014-10-04 21:47:27 +02:00
var diff;
Handlebars.registerHelper(
"diff", function(a, opt) {
if (a !== diff) {
2014-10-04 21:47:27 +02:00
diff = a;
return opt.fn(this);
} else {
return opt.inverse(this);
}
}
);