From d16c789638d7095a3aee45c8f461b9a209f7dc99 Mon Sep 17 00:00:00 2001 From: Simon Ho Date: Fri, 29 Apr 2016 16:36:46 -0700 Subject: [PATCH] Fixes for emit `remoteMethodDisabled` PR See https://github.com/strongloop/loopback/pull/2266#issuecomment-215689358 --- lib/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/application.js b/lib/application.js index cb7575ee..5667e0eb 100644 --- a/lib/application.js +++ b/lib/application.js @@ -153,7 +153,7 @@ app.model = function(Model, config) { this.emit('modelRemoted', Model.sharedClass); } - self = this; + var self = this; Model.on('remoteMethodDisabled', function(model, methodName) { self.emit('remoteMethodDisabled', model, methodName); });