js: fix condition error cause print error log

This commit is contained in:
pengfei.zhou 2023-08-04 16:42:59 +08:00 committed by osborn
parent 411ca694e4
commit a9c5281cc9
6 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -1371,12 +1371,12 @@ var Panel = /** @class */ (function () {
return diryData;
};
Panel.prototype.onRenderFinished = function () {
this.callingRenderFinishedCallback = false;
this.callingRenderFinishedCallback = true;
this.onRenderFinishedCallback.forEach(function (e) {
e();
});
this.onRenderFinishedCallback.length = 0;
this.callingRenderFinishedCallback = true;
this.callingRenderFinishedCallback = false;
};
Panel.prototype.addOnRenderFinishedCallback = function (cb) {
if (this.callingRenderFinishedCallback) {

View File

@ -1049,12 +1049,12 @@ class Panel {
return diryData;
}
onRenderFinished() {
this.callingRenderFinishedCallback = false;
this.callingRenderFinishedCallback = true;
this.onRenderFinishedCallback.forEach(e => {
e();
});
this.onRenderFinishedCallback.length = 0;
this.callingRenderFinishedCallback = true;
this.callingRenderFinishedCallback = false;
}
addOnRenderFinishedCallback(cb) {
if (this.callingRenderFinishedCallback) {

View File

@ -2589,12 +2589,12 @@ class Panel {
return diryData;
}
onRenderFinished() {
this.callingRenderFinishedCallback = false;
this.callingRenderFinishedCallback = true;
this.onRenderFinishedCallback.forEach(e => {
e();
});
this.onRenderFinishedCallback.length = 0;
this.callingRenderFinishedCallback = true;
this.callingRenderFinishedCallback = false;
}
addOnRenderFinishedCallback(cb) {
if (this.callingRenderFinishedCallback) {

View File

@ -222,12 +222,12 @@ export class Panel {
return diryData;
}
onRenderFinished() {
this.callingRenderFinishedCallback = false;
this.callingRenderFinishedCallback = true;
this.onRenderFinishedCallback.forEach(e => {
e();
});
this.onRenderFinishedCallback.length = 0;
this.callingRenderFinishedCallback = true;
this.callingRenderFinishedCallback = false;
}
addOnRenderFinishedCallback(cb) {
if (this.callingRenderFinishedCallback) {

View File

@ -259,12 +259,12 @@ export abstract class Panel {
}
onRenderFinished() {
this.callingRenderFinishedCallback = false
this.callingRenderFinishedCallback = true
this.onRenderFinishedCallback.forEach(e => {
e()
})
this.onRenderFinishedCallback.length = 0
this.callingRenderFinishedCallback = true
this.callingRenderFinishedCallback = false
}
addOnRenderFinishedCallback(cb: () => void) {