FIX: Broken build

This commit is contained in:
Robin Ward 2016-10-28 16:35:32 -04:00
parent 092ad7810d
commit 3505a13bea
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

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