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;
|
||||
};
|
||||
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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user