kopia lustrzana https://github.com/c9/core
Throw if ready is set more than once
rodzic
79bf780863
commit
4ca996949a
|
@ -338,11 +338,9 @@ define(function(require, module, exports) {
|
||||||
*/
|
*/
|
||||||
get ready(){ return ready; },
|
get ready(){ return ready; },
|
||||||
set ready(v) {
|
set ready(v) {
|
||||||
if (typeof ready === "undefined") {
|
if (ready) throw new Error("Permission Denied");
|
||||||
ready = v;
|
ready = true;
|
||||||
emit.sticky("ready");
|
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