ScrollView 使用removeAllChildren的bug,并不会清除节点,问题在于:
cocos2d-html5 / extensions / ccui / layouts / UILayout.js里的
removeAllChildrenWithCleanup: function(cleanup){
ccui.Widget.prototype.removeAllChildrenWithCleanup(cleanup);
this._doLayoutDirty = true;
},
应该为
removeAllChildrenWithCleanup: function(cleanup){
ccui.Widget.prototype.removeAllChildrenWithCleanup.call(this,cleanup);
this._doLayoutDirty = true;
},