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

fix: length -> starLength

parent d76f8c77
...@@ -22,13 +22,13 @@ cc.Class({ ...@@ -22,13 +22,13 @@ cc.Class({
BtnShowStar.on('click', this.showStar.bind(this)); BtnShowStar.on('click', this.showStar.bind(this));
}, },
length, starLength: null,
addStar() { addStar() {
if (!this.length) { if (!this.starLength) {
this.length = 0; this.starLength = 0;
} }
this.length++; this.starLength++;
let length = this.length; let length = this.starLength;
const starLayout = cc.find('Canvas/layout'); const starLayout = cc.find('Canvas/layout');
starLayout.removeAllChildren(); starLayout.removeAllChildren();
......
...@@ -98,7 +98,6 @@ cc.Class({ ...@@ -98,7 +98,6 @@ cc.Class({
}) })
.start(); .start();
return quadBase; return quadBase;
}, },
}); });
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