Browse Source

Pull request #2105: 无JIRA任务 下个版本再改

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '09675ade1a9ce6f86e9c4564ef7b7b856463819f':
  下个版本再改
es6
guy 3 years ago
parent
commit
d0ec16a08f
  1. 4
      src/core/wrapper/layout.js

4
src/core/wrapper/layout.js

@ -486,7 +486,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function addNode (vnode, index) {
var opt = self._getOptions(vnode);
var key = opt.key == null ? index : opt.key;
return children[key] = self._addElement(index, vnode);
return children[key] = self._addElement(key, vnode);
}
function addVnodes (before, vnodes, startIdx, endIdx) {
@ -502,7 +502,7 @@ BI.Layout = BI.inherit(BI.Widget, {
if (BI.isNotNull(ch)) {
var node = self._getOptions(ch);
var key = node.key == null ? startIdx : node.key;
delete self._children[self._getChildName(startIdx)];
delete self._children[self._getChildName(key)];
children[key]._destroy();
}
}

Loading…
Cancel
Save