Skip to content

ccui.ScrollView使用removeAllChildreWithCleanup问题 #2091

@damienlsq

Description

@damienlsq

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;
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions