FIX: Helpers with multiple parameters were broken in 1.13
This commit is contained in:
parent
0f1ed1e41a
commit
319b043f43
|
@ -5,7 +5,7 @@ export function htmlHelper(fn) {
|
|||
if (Ember.Helper) {
|
||||
return Ember.Helper.helper(function(...args) {
|
||||
if (args.length > 1) {
|
||||
args[1] = { hash: args[1] };
|
||||
args = args[0].concat(args[args.length-1]);
|
||||
}
|
||||
return new Handlebars.SafeString(fn.apply(this, args) || '');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue