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