FIX: Helpers with multiple parameters were broken in 1.13

This commit is contained in:
Robin Ward 2016-10-27 17:13:25 -04:00
parent 0f1ed1e41a
commit 319b043f43
1 changed files with 1 additions and 1 deletions

View File

@ -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) || '');
});