diff --git a/plugins/c9.ide.watcher/gui.js b/plugins/c9.ide.watcher/gui.js index a3325d86..f3bf9964 100644 --- a/plugins/c9.ide.watcher/gui.js +++ b/plugins/c9.ide.watcher/gui.js @@ -1,7 +1,7 @@ define(function(require, exports, module) { main.consumes = [ "Plugin", "fs", "settings", "preferences", "watcher", "tabManager", - "save", "dialog.question", "dialog.filechange", "threewaymerge", "error_handler" + "save", "dialog.question", "dialog.filechange", "threewaymerge" ]; main.provides = ["watcher.gui"]; return main; @@ -17,7 +17,6 @@ define(function(require, exports, module) { var question = imports["dialog.question"]; var filechange = imports["dialog.filechange"]; var threeWayMerge = imports.threewaymerge.merge; - var errorHandler = imports.error_handler; var collabEnabled = options.collab; @@ -126,7 +125,7 @@ define(function(require, exports, module) { if (tab) { // If collab picks this up and handles the change it will return false if (emit("docChange", {tab: tab}) === false) - return + return; addChangedTab(tab, e.type === "change"); } diff --git a/plugins/c9.vfs.standalone/www/test.js b/plugins/c9.vfs.standalone/www/test.js index 2b3ea410..c40b5af9 100644 --- a/plugins/c9.vfs.standalone/www/test.js +++ b/plugins/c9.vfs.standalone/www/test.js @@ -106,6 +106,10 @@ require([ x.check = function(){}; return x; })(), + "watcher.gui": (function(){ + var x = new EventEmitter(); + return x; + })(), save: (function(){ var x = new EventEmitter(); x.saveAll = function(c){ c(); };