kopia lustrzana https://github.com/c9/core
Merge pull request +16036 from c9/debugger
Fix display of null in chrome debuggerpull/483/merge
commit
fe4d1a86d6
|
@ -315,11 +315,9 @@ define(function(require, exports, module) {
|
||||||
function createVariable(options, name, scope, variable) {
|
function createVariable(options, name, scope, variable) {
|
||||||
var value = options.value || options;
|
var value = options.value || options;
|
||||||
|
|
||||||
if (variable) {
|
if (!variable) {
|
||||||
// variable.value = formatType(options);
|
if (value.subtype == "null")
|
||||||
// variable.type = options.type;
|
value.type = value.subtype;
|
||||||
}
|
|
||||||
else {
|
|
||||||
variable = new Variable({
|
variable = new Variable({
|
||||||
name: name || options.name,
|
name: name || options.name,
|
||||||
scope: scope,
|
scope: scope,
|
||||||
|
@ -331,28 +329,6 @@ define(function(require, exports, module) {
|
||||||
options: options,
|
options: options,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (value.prototypeObject)
|
|
||||||
// variable.prototype = new Variable({
|
|
||||||
// tagName: "prototype",
|
|
||||||
// name: "prototype",
|
|
||||||
// type: "object",
|
|
||||||
// ref: value.prototypeObject.ref
|
|
||||||
// });
|
|
||||||
// if (value.protoObject)
|
|
||||||
// variable.proto = new Variable({
|
|
||||||
// tagName: "proto",
|
|
||||||
// name: "proto",
|
|
||||||
// type: "object",
|
|
||||||
// ref: value.protoObject.ref
|
|
||||||
// });
|
|
||||||
// if (value.constructorFunction)
|
|
||||||
// variable.constructorFunction = new Variable({
|
|
||||||
// tagName: "constructor",
|
|
||||||
// name: "constructor",
|
|
||||||
// type: "function",
|
|
||||||
// ref: value.constructorFunction.ref
|
|
||||||
// });
|
|
||||||
return variable;
|
return variable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -542,9 +542,6 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
var stateTimer = null, pageTimers = {};
|
var stateTimer = null, pageTimers = {};
|
||||||
function setSavingState(tab, state, timeout, silent) {
|
function setSavingState(tab, state, timeout, silent) {
|
||||||
clearTimeout(stateTimer);
|
|
||||||
clearTimeout(pageTimers[tab.name]);
|
|
||||||
|
|
||||||
tab.classList.remove("saving", "saved", "error");
|
tab.classList.remove("saving", "saved", "error");
|
||||||
|
|
||||||
var doc = tab.document;
|
var doc = tab.document;
|
||||||
|
@ -555,11 +552,14 @@ define(function(require, exports, module) {
|
||||||
delete doc.meta.$saving;
|
delete doc.meta.$saving;
|
||||||
|
|
||||||
if (!silent)
|
if (!silent)
|
||||||
updateSavingUi();
|
updateSavingUi(tab, state, timeout);
|
||||||
emit("tabSavingState", { tab: tab });
|
emit("tabSavingState", { tab: tab });
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateSavingUi(tab, state, timeout) {
|
function updateSavingUi(tab, state, timeout) {
|
||||||
|
clearTimeout(stateTimer);
|
||||||
|
clearTimeout(pageTimers[tab.name]);
|
||||||
|
var doc = tab.document;
|
||||||
if (state == "saving") {
|
if (state == "saving") {
|
||||||
btnSave.show();
|
btnSave.show();
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue