js: fix condition error cause print error log
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user