Fixes for emit `remoteMethodDisabled` PR

See https://github.com/strongloop/loopback/pull/2266#issuecomment-215689358
This commit is contained in:
Simon Ho 2016-04-29 16:36:46 -07:00
parent 04f5434894
commit d16c789638
1 changed files with 1 additions and 1 deletions

View File

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