mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Update CCWidgetManager.js
This commit is contained in:
@@ -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