Update getProperty helper
This commit is contained in:
parent
62e651b597
commit
024836cab0
1 changed files with 4 additions and 5 deletions
|
@ -1,8 +1,7 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
// This will be unneccesary when ember 2.0 lands
|
||||
export function getProperty(params) {
|
||||
return Ember.get(params[0], params[1]);
|
||||
}
|
||||
const { get, Helper: { helper } } = Ember;
|
||||
|
||||
export default Ember.HTMLBars.makeBoundHelper(getProperty);
|
||||
export default helper(function(params) {
|
||||
return get(params[0], params[1]);
|
||||
});
|
||||
|
|
Reference in a new issue