mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 12:04:21 +08:00
FIX: Helpers with multiple parameters were broken in 1.13
This commit is contained in:
parent
0f1ed1e41a
commit
319b043f43
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue