mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
@@ -347,7 +347,7 @@ var widgetManager = cc._widgetManager = module.exports = {
|
||||
},
|
||||
remove: function (widget) {
|
||||
widget.node._widget = null;
|
||||
var index = activeWidgets.indexOf(widget.node);
|
||||
var index = activeWidgets.indexOf(widget);
|
||||
if (index > -1) {
|
||||
this._activeWidgetsIterator.removeAt(index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user