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) {
|
export function findHelper(name) {
|
||||||
return _helpers[name];
|
return _helpers[name] || _helpers[name.dasherize()];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function registerHelpers(registry) {
|
export function registerHelpers(registry) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ registerHelper('as-hash', function(_, params) {
|
||||||
if (Ember.Helper) { return params; }
|
if (Ember.Helper) { return params; }
|
||||||
|
|
||||||
const hash = {};
|
const hash = {};
|
||||||
Object.keys(params.hash).forEach(k => {
|
Object.keys(params).forEach(k => {
|
||||||
hash[k] = params.data.view.getStream(params.hash[k]).value();
|
hash[k] = params[k].value();
|
||||||
});
|
});
|
||||||
return hash;
|
return hash;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue