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

13 lines
150 B
JavaScript
Raw Normal View History

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