kopia lustrzana https://github.com/c9/core
Some docs related changes to pane
rodzic
4e095a0ddc
commit
f00eee5e8b
|
@ -124,12 +124,6 @@ define(function(require, exports, module) {
|
||||||
return usedBy
|
return usedBy
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadRemotePlugin(id, options, callback) {
|
|
||||||
vfs.extend(id, options, function(err, meta) {
|
|
||||||
callback(err, meta && meta.api);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function unloadAllPlugins(exclude) {
|
function unloadAllPlugins(exclude) {
|
||||||
if (lut.settings)
|
if (lut.settings)
|
||||||
lut.settings.unload(null, true);
|
lut.settings.unload(null, true);
|
||||||
|
@ -160,6 +154,12 @@ define(function(require, exports, module) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function loadRemotePlugin(id, options, callback) {
|
||||||
|
vfs.extend(id, options, function(err, meta) {
|
||||||
|
callback(err, meta && meta.api);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function fetchRemoteApi(id, callback) {
|
function fetchRemoteApi(id, callback) {
|
||||||
vfs.use(id, {}, function(err, meta) {
|
vfs.use(id, {}, function(err, meta) {
|
||||||
callback(err, meta && meta.api);
|
callback(err, meta && meta.api);
|
||||||
|
|
|
@ -185,7 +185,7 @@ define(function(require, module, exports) {
|
||||||
|
|
||||||
tabs.on("paneCreate", function(e) {
|
tabs.on("paneCreate", function(e) {
|
||||||
if (hidden && container && ui.isChildOf(container, e.pane.aml)) {
|
if (hidden && container && ui.isChildOf(container, e.pane.aml)) {
|
||||||
e.pane.visible = false;
|
e.pane._visible = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ define(function(require, module, exports) {
|
||||||
maxHeight = window.innerHeight - 70;
|
maxHeight = window.innerHeight - 70;
|
||||||
|
|
||||||
getPanes().forEach(function(pane) {
|
getPanes().forEach(function(pane) {
|
||||||
pane.visible = !shouldHide;
|
pane._visible = !shouldHide;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!shouldHide && !tabs.focussedTab) {
|
if (!shouldHide && !tabs.focussedTab) {
|
||||||
|
|
|
@ -362,7 +362,7 @@ define(function(require, module, exports) {
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Sets or retrieves the serialized value of this document.
|
* Sets or retrieves the serialized value of this document.
|
||||||
* Setting this document will not change the undo stack. Set
|
* Setting this property will not change the undo stack. Set
|
||||||
* this property only to initialize the document or to reset
|
* this property only to initialize the document or to reset
|
||||||
* the value of this document. Requesting the value of this
|
* the value of this document. Requesting the value of this
|
||||||
* document will cause it to serialize it's full state.
|
* document will cause it to serialize it's full state.
|
||||||
|
|
|
@ -657,20 +657,18 @@ define(function(require, module, exports) {
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get group(){
|
get group(){
|
||||||
function getGroup(amlPane) {
|
var pNode = amlPane.parentNode;
|
||||||
var pNode = amlPane.parentNode;
|
|
||||||
|
if (pNode.localName.indexOf("splitbox") == -1)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (pNode.localName.indexOf("splitbox") == -1)
|
var result = [];
|
||||||
return false;
|
pNode.childNodes.forEach(function(aml) {
|
||||||
|
if (aml.cloud9pane)
|
||||||
var result = pNode.childNodes.map(function(aml) {
|
result.push(aml.cloud9pane);
|
||||||
return aml.cloud9pane;
|
});
|
||||||
});
|
|
||||||
// result.__defineGetter__("group", function(){
|
return result;
|
||||||
// return getGroup(pNode)
|
|
||||||
// });
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -703,7 +701,8 @@ define(function(require, module, exports) {
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get visible(){ return visible; },
|
get visible(){ return visible; },
|
||||||
set visible(v){ visible = v; },
|
set visible(v){ amlPane.setProperty("visible", v); visible = v; },
|
||||||
|
set _visible(v){ visible = v; },
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the meta object for this panel
|
* Retrieves the meta object for this panel
|
||||||
|
|
Ładowanie…
Reference in New Issue