Update getProperty helper

This commit is contained in:
Matthew Dillon 2015-11-13 15:01:16 -07:00
parent 62e651b597
commit 024836cab0

View file

@ -1,8 +1,7 @@
import Ember from 'ember'; import Ember from 'ember';
// This will be unneccesary when ember 2.0 lands const { get, Helper: { helper } } = Ember;
export function getProperty(params) {
return Ember.get(params[0], params[1]);
}
export default Ember.HTMLBars.makeBoundHelper(getProperty); export default helper(function(params) {
return get(params[0], params[1]);
});