hardlounge/client/js/libs/handlebars/diff.js

13 lines
150 B
JavaScript
Raw Normal View History

"use strict";
2018-01-11 06:33:36 -05:00
let diff;
2014-10-04 15:47:27 -04:00
2016-12-18 10:53:28 -05:00
module.exports = function(a, opt) {
if (a !== diff) {
diff = a;
return opt.fn(this);
2014-10-04 15:47:27 -04:00
}
2016-12-18 10:53:28 -05:00
return opt.inverse(this);
};