diff --git a/ScrollViewDemo/assets/Script/HelloWorld.js b/ScrollViewDemo/assets/Script/HelloWorld.js index 4ee51d1..af0a1f9 100644 --- a/ScrollViewDemo/assets/Script/HelloWorld.js +++ b/ScrollViewDemo/assets/Script/HelloWorld.js @@ -11,15 +11,9 @@ cc.Class({ // use this for initialization onLoad: function () { - // this.label.string = this.text; this.horizontal.node.active = true; this.vertical.node.active = false; this.grid.node.active = false; - this.node.removeAllChildren(); - cc.instantiate(); - parseInt(); - let node= new cc.Node(); - node.setPositionX(); }, onBtnClicked(event, customData) {