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