hardlounge/client/js/libs/handlebars/diff.js
2016-05-12 16:07:15 +03:00

13 lines
173 B
JavaScript

var diff;
Handlebars.registerHelper(
"diff", function(a, opt) {
if (a !== diff) {
diff = a;
return opt.fn(this);
} else {
return opt.inverse(this);
}
}
);