kopia lustrzana https://github.com/c9/core
Add ready variable
rodzic
b70b7a0938
commit
d40501d2f4
|
@ -26,7 +26,7 @@ define(function(require, module, exports) {
|
||||||
var meta = {};
|
var meta = {};
|
||||||
var hasValue = options && (typeof options.value === "string");
|
var hasValue = options && (typeof options.value === "string");
|
||||||
|
|
||||||
var tab, lastState, title, tooltip, editor, recentValue;
|
var tab, lastState, title, tooltip, editor, recentValue, ready;
|
||||||
|
|
||||||
plugin.on("newListener", function(type, listener) {
|
plugin.on("newListener", function(type, listener) {
|
||||||
if (type == "state.set" && lastState) {
|
if (type == "state.set" && lastState) {
|
||||||
|
@ -338,8 +338,11 @@ define(function(require, module, exports) {
|
||||||
*/
|
*/
|
||||||
get ready(){ return ready; },
|
get ready(){ return ready; },
|
||||||
set ready(v) {
|
set ready(v) {
|
||||||
|
if (typeof ready === "undefined") {
|
||||||
ready = v;
|
ready = v;
|
||||||
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