mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 07:09:57 +08:00
Show composer after discussion is reloaded following login
This commit is contained in:
@ -23,6 +23,17 @@ export default {
|
||||
this.getHandlers(event).push(handler);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
*/
|
||||
one(event, handler) {
|
||||
var wrapper = function() {
|
||||
handler.apply(this, arguments);
|
||||
this.off(event, wrapper);
|
||||
};
|
||||
this.getHandlers(event).push(wrapper);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
*/
|
||||
|
Reference in New Issue
Block a user