From e6e4db020e6ecf230a0e1589eb467081deb4d359 Mon Sep 17 00:00:00 2001 From: Nikolai Onken Date: Thu, 12 Feb 2015 14:04:04 +0000 Subject: [PATCH] Don't throw when ready is called twice --- plugins/c9.ide.editors/document.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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