Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct 'this' scope

  • Loading branch information...
commit 5cfbdd85955226640b2038d0b96e07520bdacc92 1 parent 54be4f0
Sergi Mansilla authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 plugins-server/cloud9.core/ide.js
View
5 plugins-server/cloud9.core/ide.js
@@ -67,11 +67,12 @@ util.inherits(Ide, EventEmitter);
this.init = function(exts) {
this.workspace.createPlugins(exts);
+ var _self = this;
var statePlugin = this.workspace.getExt("state");
if (statePlugin) {
statePlugin.on("statechange", function(state) {
- state.workspaceDir = this.workspace.workspaceDir;
- state.davPrefix = this.ide.davPrefix;
+ state.workspaceDir = _self.workspace.workspaceDir;
+ state.davPrefix = _self.ide.davPrefix;
});
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.