kopia lustrzana https://github.com/c9/core
Add docs
rodzic
02d7b6093c
commit
b120e3b8c5
|
@ -105,7 +105,6 @@ define(function(require, exports, module) {
|
||||||
});
|
});
|
||||||
// var emit = plugin.getEmitter();
|
// var emit = plugin.getEmitter();
|
||||||
|
|
||||||
// var HASSDK = experimental.addExperiment("sdk=0", "SDK/Load Custom Plugins");
|
|
||||||
var ENABLED = c9.location.indexOf("debug=2") > -1;
|
var ENABLED = c9.location.indexOf("debug=2") > -1;
|
||||||
var MANAGER = experimental.addExperiment("plugin-manager=1", "SDK/Plugin Manager");
|
var MANAGER = experimental.addExperiment("plugin-manager=1", "SDK/Plugin Manager");
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,8 @@ define(function(require, exports, module) {
|
||||||
var found = {};
|
var found = {};
|
||||||
function addExperiment(query, name){
|
function addExperiment(query, name){
|
||||||
var key = query.split("=");
|
var key = query.split("=");
|
||||||
var defValue = Number(key[1]); key = key[0];
|
var defValue = Number(key[1]);
|
||||||
|
key = key[0];
|
||||||
var uniqueId = key.replace(/\//g, "-");
|
var uniqueId = key.replace(/\//g, "-");
|
||||||
|
|
||||||
var parts = name.split("/");
|
var parts = name.split("/");
|
||||||
|
@ -116,7 +117,12 @@ define(function(require, exports, module) {
|
||||||
],
|
],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Define a new experimental feature.
|
||||||
*
|
*
|
||||||
|
* @param {String} query e.g. foo=0 for a feature 'foo' that is enabled by default,
|
||||||
|
* or bar=1 for a feature 'bar' that is disabled by default
|
||||||
|
*
|
||||||
|
* @param {String} name the name of this setting in the UI, e.g. SDK/Plugin Manager
|
||||||
*/
|
*/
|
||||||
addExperiment: addExperiment
|
addExperiment: addExperiment
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue