Commit 42c95812 authored by liujiangnan's avatar liujiangnan

feat: length错误

parent 54c8ce84
...@@ -188,7 +188,7 @@ cc.Class({ ...@@ -188,7 +188,7 @@ cc.Class({
}); });
}, },
initStars() { initStars() {
// this.length = CardManager.getIns().getTestlet(); // this.len = CardManager.getIns().getTestlet();
// this.addStar(); // this.addStar();
}, },
initLayout() { initLayout() {
...@@ -414,13 +414,13 @@ cc.Class({ ...@@ -414,13 +414,13 @@ cc.Class({
}) })
}); });
}, },
length, len: null,
addStar() { addStar() {
if (!this.length) { if (!this.len) {
this.length = 0; this.len = 0;
} }
this.length++; this.len++;
let length = this.length; let length = this.len;
const starLayout = cc.find('Canvas/layout_stars'); const starLayout = cc.find('Canvas/layout_stars');
starLayout.removeAllChildren(); starLayout.removeAllChildren();
......
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