Commit f8c09baa authored by 范雪寒's avatar 范雪寒

refactor: 减少else缩进;删掉无用的注释

parent bada2856
......@@ -43,7 +43,8 @@ export class MyGame extends Game {
if (!data.data || Object.is(data.data, {}) || !data.data.tittle) {
this.data = defaultData;
} else {
return;
}
this.data = data.data;
let imgUrlList = [];
......@@ -61,7 +62,7 @@ export class MyGame extends Game {
audioUrlList = audioUrlList.filter((data) => data != null && data != '');
this.preLoadData(imgUrlList, audioUrlList);
}
}
preLoadData(imgUrlList, audioUrlList) {
......@@ -249,8 +250,6 @@ export class MyGame extends Game {
this.bg.addChild(scrollBaseNode);
this.scrollBaseNode = scrollBaseNode;
console.log('this.data.questions.length = ' + this.data.questions.length);
this.data.questions.forEach((question, idx) => {
let baseNode = new TouchSprite();
......
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