FIX: Pass functions as event handlers instead of function names

FIX: Pass functions as event handlers instead of function names

diff --git a/assets/javascripts/discourse/initializers/hook-composer.js.es6 b/assets/javascripts/discourse/initializers/hook-composer.js.es6
index 1abe0c5..d429d3e 100644
--- a/assets/javascripts/discourse/initializers/hook-composer.js.es6
+++ b/assets/javascripts/discourse/initializers/hook-composer.js.es6
@@ -117,7 +117,7 @@ export default {
     // Decode composer on reply reload. This usually occurs when a post is
     // edited or a draft is loaded.
     const appEvents = container.lookup("service:app-events");
-    appEvents.on("composer:reply-reloaded", this, "composerReplyReloaded");
+    appEvents.on("composer:reply-reloaded", this, this.composerReplyReloaded);
   },
 
   composerReplyReloaded(model) {
diff --git a/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6 b/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
index 5a5ed3c..880f712 100644
--- a/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
+++ b/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
@@ -75,8 +75,8 @@ export default {
     }
 
     const appEvents = container.lookup("service:app-events");
-    appEvents.on("encrypt:status-changed", this, "decryptTitles");
-    appEvents.on("page:changed", this, "decryptDocTitle");
+    appEvents.on("encrypt:status-changed", this, this.decryptTitles);
+    appEvents.on("page:changed", this, this.decryptDocTitle);
 
     // Try to decrypt new titles that may appear after rendering a component.
     var self = this;

GitHub sha: 07a9657f