Commit bb0c5843 authored by limingzhe's avatar limingzhe

fix: debug

parent 5308a020
...@@ -1617,12 +1617,18 @@ cc.Class({ ...@@ -1617,12 +1617,18 @@ cc.Class({
this.hideLight(); this.hideLight();
this.hideCurOptionAnim(() => { this.hideCurOptionAnim(() => {
if (this.isDestroy) {
return;
}
this.setCurOption(); this.setCurOption();
this.showCurOptionAnim(); this.showCurOptionAnim();
this.hideMask(); this.hideMask();
}); });
this.hideCurQuestion(() => { this.hideCurQuestion(() => {
if (this.isDestroy) {
return;
}
this.setCurQuestion(); this.setCurQuestion();
this.showCurQuestionAnim(); this.showCurQuestionAnim();
}); });
...@@ -2907,6 +2913,8 @@ cc.Class({ ...@@ -2907,6 +2913,8 @@ cc.Class({
} }
}, },
onDestroy() {
this.isDestroy = true;
}
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment