From 024836cab089e7ef59717ad0006db7e0939f74c5 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 13 Nov 2015 15:01:16 -0700 Subject: [PATCH] Update getProperty helper --- app/helpers/get-property.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/helpers/get-property.js b/app/helpers/get-property.js index 6b2308d..4ba442b 100644 --- a/app/helpers/get-property.js +++ b/app/helpers/get-property.js @@ -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]); +});