1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 09:41:26 +02:00

Show composer after discussion is reloaded following login

This commit is contained in:
Toby Zerner
2015-05-18 15:38:19 +09:30
parent 8b7e7c0afd
commit 96c3c2cc25
3 changed files with 17 additions and 2 deletions

View File

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