mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Call action with correct context
This commit is contained in:
@@ -23,7 +23,7 @@ export default Ember.Component.extend({
|
|||||||
if (typeof action === 'string') {
|
if (typeof action === 'string') {
|
||||||
this.sendAction('action');
|
this.sendAction('action');
|
||||||
} else if (typeof action === 'function') {
|
} else if (typeof action === 'function') {
|
||||||
action();
|
action.call(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user