removed unnecessary handlebars helpers
This commit is contained in:
@@ -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);
|
||||
});
|
||||
@@ -1,4 +1,4 @@
|
||||
{{#if_or sampleJSON sampleXML}}
|
||||
{{#ifCond sampleJSON "||" sampleXML}}
|
||||
|
||||
<div>
|
||||
<ul class="signature-nav">
|
||||
@@ -29,4 +29,4 @@
|
||||
</div>
|
||||
{{else}}
|
||||
{{signature}}
|
||||
{{/if_or}}
|
||||
{{/ifCond}}
|
||||
Reference in New Issue
Block a user