mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 01:51:45 +08:00
Call action with correct context
This commit is contained in:
parent
cf8e4b9913
commit
3d9c99ef69
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user