You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Group.prototype.delChildrenFromStorage = function(storage) {
for (var i = 0; i < this._children.length; i++) {
var child = this._children[i];
storage.delFromMap(child);
if (child.type === 'group') {
child.delChildrenFromStorage(storage);
}
}
};
这边的storage.delFromMap(child);是否应该改成storage.delFromMap(child.id);
因为delFromMap方法中的第一句 var el = this._elements[elId];有个索引查找。
The text was updated successfully, but these errors were encountered:
Group.prototype.delChildrenFromStorage = function(storage) {
for (var i = 0; i < this._children.length; i++) {
var child = this._children[i];
storage.delFromMap(child);
if (child.type === 'group') {
child.delChildrenFromStorage(storage);
}
}
};
这边的storage.delFromMap(child);是否应该改成storage.delFromMap(child.id);
因为delFromMap方法中的第一句 var el = this._elements[elId];有个索引查找。
The text was updated successfully, but these errors were encountered: