1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

Call action with correct context

This commit is contained in:
Toby Zerner
2015-04-03 17:00:18 +10:30
parent cf8e4b9913
commit 3d9c99ef69

View File

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