Merge pull request #2272 from strongloop/fix/emit-remote-disabled-event
Fix for `remoteMethodDisabled` PR
This commit is contained in:
commit
69b2b41692
|
@ -153,7 +153,7 @@ app.model = function(Model, config) {
|
||||||
this.emit('modelRemoted', Model.sharedClass);
|
this.emit('modelRemoted', Model.sharedClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
self = this;
|
var self = this;
|
||||||
Model.on('remoteMethodDisabled', function(model, methodName) {
|
Model.on('remoteMethodDisabled', function(model, methodName) {
|
||||||
self.emit('remoteMethodDisabled', model, methodName);
|
self.emit('remoteMethodDisabled', model, methodName);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue