Merge pull request +9561 from c9/fix/repl

Enable Bash REPL. Prepare Immediate for Salesforce Log Viewer.
pull/223/head
Lennart Kats 2015-10-21 09:12:37 +02:00
commit b64644bdfd
4 zmienionych plików z 38 dodań i 33 usunięć

Wyświetl plik

@ -382,7 +382,7 @@ module.exports = function(options) {
"plugins/c9.ide.immediate/evaluator", "plugins/c9.ide.immediate/evaluator",
"plugins/c9.ide.immediate/evaluators/browserjs", "plugins/c9.ide.immediate/evaluators/browserjs",
"plugins/c9.ide.immediate/evaluators/debugnode", "plugins/c9.ide.immediate/evaluators/debugnode",
// "plugins/c9.ide.immediate/evaluators/bash", "plugins/c9.ide.immediate/evaluators/bash",
"plugins/c9.ide.run.debug/variables", "plugins/c9.ide.run.debug/variables",
"plugins/c9.ide.run.debug/watches", "plugins/c9.ide.run.debug/watches",
"plugins/c9.ide.run.debug/liveinspect", "plugins/c9.ide.run.debug/liveinspect",

Wyświetl plik

@ -71,12 +71,12 @@
"c9.ide.find": "#35379124ca", "c9.ide.find": "#35379124ca",
"c9.ide.find.infiles": "#c132ad243c", "c9.ide.find.infiles": "#c132ad243c",
"c9.ide.find.replace": "#44772dd796", "c9.ide.find.replace": "#44772dd796",
"c9.ide.run.debug": "#e38e16e120", "c9.ide.run.debug": "#a46abda8e9",
"c9.automate": "#47e2c429c9", "c9.automate": "#47e2c429c9",
"c9.ide.ace.emmet": "#6dc4585e02", "c9.ide.ace.emmet": "#6dc4585e02",
"c9.ide.ace.gotoline": "#a8ff07c8f4", "c9.ide.ace.gotoline": "#a8ff07c8f4",
"c9.ide.ace.keymaps": "#2e3c6e3c8f", "c9.ide.ace.keymaps": "#2e3c6e3c8f",
"c9.ide.ace.repl": "#ed708a1b98", "c9.ide.ace.repl": "#4b88a85b7b",
"c9.ide.ace.split": "#0ae0151c78", "c9.ide.ace.split": "#0ae0151c78",
"c9.ide.ace.statusbar": "#d95be89d53", "c9.ide.ace.statusbar": "#d95be89d53",
"c9.ide.ace.stripws": "#cf0f42ac59", "c9.ide.ace.stripws": "#cf0f42ac59",
@ -88,7 +88,7 @@
"c9.ide.format": "#33ebd01914", "c9.ide.format": "#33ebd01914",
"c9.ide.help.support": "#e95f98f87c", "c9.ide.help.support": "#e95f98f87c",
"c9.ide.imgeditor": "#66a9733dc1", "c9.ide.imgeditor": "#66a9733dc1",
"c9.ide.immediate": "#18c23aa730", "c9.ide.immediate": "#29fd6d3f51",
"c9.ide.installer": "#0fde9f0067", "c9.ide.installer": "#0fde9f0067",
"c9.ide.mount": "#3e017a3324", "c9.ide.mount": "#3e017a3324",
"c9.ide.navigate": "#c191d9b92f", "c9.ide.navigate": "#c191d9b92f",

Wyświetl plik

@ -530,8 +530,8 @@ define(function(require, exports, module) {
}); });
} }
function cleanUp(keepElements) { function cleanUp(what) {
if (!keepElements) { if (!what || ~what.indexOf("elements")) {
// Loop through elements // Loop through elements
elements.forEach(function(element) { elements.forEach(function(element) {
element.destroy(true, true); element.destroy(true, true);
@ -542,33 +542,36 @@ define(function(require, exports, module) {
} }
// Loop through events // Loop through events
events.forEach(function(eventRecord) { if (!what || ~what.indexOf("events")) {
var event = eventRegistry[eventRecord[0]]; events.forEach(function(eventRecord) {
if (!event) return; // this happens with mock plugins during testing var event = eventRegistry[eventRecord[0]];
var type = eventRecord[1]; if (!event) return; // this happens with mock plugins during testing
var id = eventRecord[2]; var type = eventRecord[1];
var _events = event._events; var id = eventRecord[2];
var eventList = _events && _events[type]; var _events = event._events;
if (typeof eventList == "function") { var eventList = _events && _events[type];
if (eventList.listenerId == id) if (typeof eventList == "function") {
event.off(type, eventList); if (eventList.listenerId == id)
} else if (Array.isArray(eventList)) { event.off(type, eventList);
eventList.some(function(listener) { } else if (Array.isArray(eventList)) {
if (listener.listenerId != id) return; eventList.some(function(listener) {
event.off(type, listener); if (listener.listenerId != id) return;
return true; event.off(type, listener);
}); return true;
} });
}); }
events = []; });
events = [];
onNewEvents = {};
}
// Loop through other // Loop through other
other.forEach(function(o) { if (!what || ~what.indexOf("other")) {
o(); other.forEach(function(o) {
}); o();
other = []; });
other = [];
onNewEvents = {}; }
} }
function setAPIKey(apikey){ function setAPIKey(apikey){

Wyświetl plik

@ -738,6 +738,8 @@ apf.menu = function(struct, tagName){
* @param {String} value The value of the item to select. * @param {String} value The value of the item to select.
*/ */
this.select = function(group, value){ this.select = function(group, value){
this.selectedValue = value;
var nodes = this.childNodes; var nodes = this.childNodes;
var i, l = nodes.length; var i, l = nodes.length;
for (i = 0; i < l; i++) { for (i = 0; i < l; i++) {
@ -1530,8 +1532,8 @@ apf.item = function(struct, tagName){
//@todo Anim effect here? //@todo Anim effect here?
this.dispatchEvent("click", { this.dispatchEvent("click", {
xmlContext : this.parentNode.xmlReference, xmlContext : (this.parentNode || 0).xmlReference,
opener : this.parentNode.opener opener : (this.parentNode || 0).opener
}); });