diff --git a/plugins/c9.ide.editors/document.js b/plugins/c9.ide.editors/document.js index 5326b831..1f8a9878 100644 --- a/plugins/c9.ide.editors/document.js +++ b/plugins/c9.ide.editors/document.js @@ -338,9 +338,8 @@ define(function(require, module, exports) { */ get ready(){ return ready; }, set ready(v) { - if (ready) throw new Error("Permission Denied"); + if (!ready) emit.sticky("ready"); ready = true; - emit.sticky("ready"); }, /** * The tooltip displayed when hovering over the tab button