FIX: Broken build
This commit is contained in:
parent
092ad7810d
commit
3505a13bea
|
@ -25,7 +25,7 @@ export function registerHelper(name, fn) {
|
|||
}
|
||||
|
||||
export function findHelper(name) {
|
||||
return _helpers[name];
|
||||
return _helpers[name] || _helpers[name.dasherize()];
|
||||
}
|
||||
|
||||
export function registerHelpers(registry) {
|
||||
|
|
|
@ -5,8 +5,8 @@ registerHelper('as-hash', function(_, params) {
|
|||
if (Ember.Helper) { return params; }
|
||||
|
||||
const hash = {};
|
||||
Object.keys(params.hash).forEach(k => {
|
||||
hash[k] = params.data.view.getStream(params.hash[k]).value();
|
||||
Object.keys(params).forEach(k => {
|
||||
hash[k] = params[k].value();
|
||||
});
|
||||
return hash;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue