kopia lustrzana https://github.com/c9/core
Throw if ready is set more than once
rodzic
ef89697731
commit
44a858a49a
|
@ -338,8 +338,9 @@ define(function(require, module, exports) {
|
||||||
*/
|
*/
|
||||||
get ready(){ return ready; },
|
get ready(){ return ready; },
|
||||||
set ready(v) {
|
set ready(v) {
|
||||||
if (!ready) emit.sticky("ready");
|
if (ready) throw new Error("Permission Denied");
|
||||||
ready = true;
|
ready = true;
|
||||||
|
emit.sticky("ready");
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* The tooltip displayed when hovering over the tab button
|
* The tooltip displayed when hovering over the tab button
|
||||||
|
|
Ładowanie…
Reference in New Issue