ES5 one-var

This commit is contained in:
Amine Ben hammou
2017-09-25 09:39:00 +00:00
parent a11d6d7868
commit c3ea088fca
27 changed files with 584 additions and 593 deletions

View File

@@ -1,9 +1,9 @@
define('handlebars_helpers', ['handlebars'], function (Handlebars) {
// Handlebars helpers
Handlebars.registerHelper('concat', function () {
var size = (arguments.length - 1),
output = '';
for (var i = 0; i < size; i++) {
Handlebars.registerHelper('concat', function() {
var size = (arguments.length - 1);
var output = '';
for(var i = 0; i < size; i++) {
output += arguments[i];
}
return output;