Update CCWidgetManager.js

This commit is contained in:
Jare Guo
2016-09-23 18:15:25 +08:00
committed by Jare Guo
parent 08615fafe1
commit bbf4743ec1
+1 -1
View File
@@ -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);
}