From 70c7195690c58ac44cff619d33e4eea44777f113 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 3 Apr 2015 17:00:18 +1030 Subject: [PATCH] Call action with correct context --- framework/core/ember/common/app/components/ui/action-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/ember/common/app/components/ui/action-button.js b/framework/core/ember/common/app/components/ui/action-button.js index cf0f116e2..97be6707f 100644 --- a/framework/core/ember/common/app/components/ui/action-button.js +++ b/framework/core/ember/common/app/components/ui/action-button.js @@ -23,7 +23,7 @@ export default Ember.Component.extend({ if (typeof action === 'string') { this.sendAction('action'); } else if (typeof action === 'function') { - action(); + action.call(this); } } });