js: fix condition error cause print error log
This commit is contained in:
parent
411ca694e4
commit
a9c5281cc9
File diff suppressed because one or more lines are too long
@ -1371,12 +1371,12 @@ var Panel = /** @class */ (function () {
|
|||||||
return diryData;
|
return diryData;
|
||||||
};
|
};
|
||||||
Panel.prototype.onRenderFinished = function () {
|
Panel.prototype.onRenderFinished = function () {
|
||||||
this.callingRenderFinishedCallback = false;
|
this.callingRenderFinishedCallback = true;
|
||||||
this.onRenderFinishedCallback.forEach(function (e) {
|
this.onRenderFinishedCallback.forEach(function (e) {
|
||||||
e();
|
e();
|
||||||
});
|
});
|
||||||
this.onRenderFinishedCallback.length = 0;
|
this.onRenderFinishedCallback.length = 0;
|
||||||
this.callingRenderFinishedCallback = true;
|
this.callingRenderFinishedCallback = false;
|
||||||
};
|
};
|
||||||
Panel.prototype.addOnRenderFinishedCallback = function (cb) {
|
Panel.prototype.addOnRenderFinishedCallback = function (cb) {
|
||||||
if (this.callingRenderFinishedCallback) {
|
if (this.callingRenderFinishedCallback) {
|
||||||
|
@ -1049,12 +1049,12 @@ class Panel {
|
|||||||
return diryData;
|
return diryData;
|
||||||
}
|
}
|
||||||
onRenderFinished() {
|
onRenderFinished() {
|
||||||
this.callingRenderFinishedCallback = false;
|
this.callingRenderFinishedCallback = true;
|
||||||
this.onRenderFinishedCallback.forEach(e => {
|
this.onRenderFinishedCallback.forEach(e => {
|
||||||
e();
|
e();
|
||||||
});
|
});
|
||||||
this.onRenderFinishedCallback.length = 0;
|
this.onRenderFinishedCallback.length = 0;
|
||||||
this.callingRenderFinishedCallback = true;
|
this.callingRenderFinishedCallback = false;
|
||||||
}
|
}
|
||||||
addOnRenderFinishedCallback(cb) {
|
addOnRenderFinishedCallback(cb) {
|
||||||
if (this.callingRenderFinishedCallback) {
|
if (this.callingRenderFinishedCallback) {
|
||||||
|
@ -2589,12 +2589,12 @@ class Panel {
|
|||||||
return diryData;
|
return diryData;
|
||||||
}
|
}
|
||||||
onRenderFinished() {
|
onRenderFinished() {
|
||||||
this.callingRenderFinishedCallback = false;
|
this.callingRenderFinishedCallback = true;
|
||||||
this.onRenderFinishedCallback.forEach(e => {
|
this.onRenderFinishedCallback.forEach(e => {
|
||||||
e();
|
e();
|
||||||
});
|
});
|
||||||
this.onRenderFinishedCallback.length = 0;
|
this.onRenderFinishedCallback.length = 0;
|
||||||
this.callingRenderFinishedCallback = true;
|
this.callingRenderFinishedCallback = false;
|
||||||
}
|
}
|
||||||
addOnRenderFinishedCallback(cb) {
|
addOnRenderFinishedCallback(cb) {
|
||||||
if (this.callingRenderFinishedCallback) {
|
if (this.callingRenderFinishedCallback) {
|
||||||
|
@ -222,12 +222,12 @@ export class Panel {
|
|||||||
return diryData;
|
return diryData;
|
||||||
}
|
}
|
||||||
onRenderFinished() {
|
onRenderFinished() {
|
||||||
this.callingRenderFinishedCallback = false;
|
this.callingRenderFinishedCallback = true;
|
||||||
this.onRenderFinishedCallback.forEach(e => {
|
this.onRenderFinishedCallback.forEach(e => {
|
||||||
e();
|
e();
|
||||||
});
|
});
|
||||||
this.onRenderFinishedCallback.length = 0;
|
this.onRenderFinishedCallback.length = 0;
|
||||||
this.callingRenderFinishedCallback = true;
|
this.callingRenderFinishedCallback = false;
|
||||||
}
|
}
|
||||||
addOnRenderFinishedCallback(cb) {
|
addOnRenderFinishedCallback(cb) {
|
||||||
if (this.callingRenderFinishedCallback) {
|
if (this.callingRenderFinishedCallback) {
|
||||||
|
@ -259,12 +259,12 @@ export abstract class Panel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onRenderFinished() {
|
onRenderFinished() {
|
||||||
this.callingRenderFinishedCallback = false
|
this.callingRenderFinishedCallback = true
|
||||||
this.onRenderFinishedCallback.forEach(e => {
|
this.onRenderFinishedCallback.forEach(e => {
|
||||||
e()
|
e()
|
||||||
})
|
})
|
||||||
this.onRenderFinishedCallback.length = 0
|
this.onRenderFinishedCallback.length = 0
|
||||||
this.callingRenderFinishedCallback = true
|
this.callingRenderFinishedCallback = false
|
||||||
}
|
}
|
||||||
|
|
||||||
addOnRenderFinishedCallback(cb: () => void) {
|
addOnRenderFinishedCallback(cb: () => void) {
|
||||||
|
Reference in New Issue
Block a user