removed unnecessary handlebars helpers

This commit is contained in:
Anna Bodnia
2016-02-22 19:11:09 +02:00
parent 004ac2d6ae
commit 2af017ae5e
4 changed files with 48 additions and 34 deletions

View File

@@ -52,13 +52,6 @@ Handlebars.registerHelper('renderTextParam', function(param) {
return new Handlebars.SafeString(result);
});
Handlebars.registerHelper('if_or', function(v1, v2, options) {
if (v1 || v2) {
return options.fn(this);
}
return options.inverse(this);
});
Handlebars.registerHelper('ifCond', function (v1, operator, v2, options) {
switch (operator) {
@@ -81,11 +74,4 @@ Handlebars.registerHelper('ifCond', function (v1, operator, v2, options) {
default:
return options.inverse(this);
}
});
Handlebars.registerHelper('if_or', function(v1, v2, options) {
if (v1 || v2) {
return options.fn(this);
}
return options.inverse(this);
});