2016-10-09 19:14:02 +00:00
|
|
|
"use strict";
|
|
|
|
|
2014-10-04 19:47:27 +00:00
|
|
|
var diff;
|
|
|
|
|
|
|
|
Handlebars.registerHelper(
|
|
|
|
"diff", function(a, opt) {
|
2016-05-12 13:07:15 +00:00
|
|
|
if (a !== diff) {
|
2014-10-04 19:47:27 +00:00
|
|
|
diff = a;
|
|
|
|
return opt.fn(this);
|
|
|
|
}
|
2016-10-09 08:54:44 +00:00
|
|
|
|
|
|
|
return opt.inverse(this);
|
2014-10-04 19:47:27 +00:00
|
|
|
}
|
|
|
|
);
|