Browse Source

Merge pull request #634 in VISUAL/fineui from ~GUY/fineui:master to master

* commit '3c9eb3a2a728c3a740e89306a58c246eb9bb62db':
  update
  update
es6
guy 6 years ago
parent
commit
04a4e029af
  1. 10
      dist/bundle.js
  2. 66
      dist/bundle.min.js
  3. 10
      dist/core.js
  4. 10
      dist/fineui.js
  5. 66
      dist/fineui.min.js
  6. 10
      dist/fineui_without_jquery_polyfill.js
  7. 2
      dist/utils.min.js
  8. 10
      src/core/wrapper/layout.js

10
dist/bundle.js vendored

@ -24785,7 +24785,7 @@ BI.Layout = BI.inherit(BI.Widget, {
this._children = {}; this._children = {};
BI.each(newCh, function (i, child) { BI.each(newCh, function (i, child) {
var node = self._getOptions(child); var node = self._getOptions(child);
var key = node.key == null ? i : node.key; var key = node.key == null ? self._getChildName(i) : node.key;
children[key]._mount(); children[key]._mount();
self._children[self._getChildName(i)] = children[key]; self._children[self._getChildName(i)] = children[key];
}); });
@ -24803,7 +24803,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function addNode (vnode, index) { function addNode (vnode, index) {
var opt = self._getOptions(vnode); var opt = self._getOptions(vnode);
var key = opt.key == null ? index : opt.key; var key = opt.key == null ? self._getChildName(index) : opt.key;
return children[key] = self._addElement(key, vnode); return children[key] = self._addElement(key, vnode);
} }
@ -24817,7 +24817,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function removeVnodes (vnodes, startIdx, endIdx) { function removeVnodes (vnodes, startIdx, endIdx) {
for (; startIdx <= endIdx; ++startIdx) { for (; startIdx <= endIdx; ++startIdx) {
var node = self._getOptions(vnodes[startIdx]); var node = self._getOptions(vnodes[startIdx]);
var key = node.key == null ? startIdx : node.key; var key = node.key == null ? self._getChildName(startIdx) : node.key;
children[key]._destroy(); children[key]._destroy();
} }
} }
@ -24825,9 +24825,9 @@ BI.Layout = BI.inherit(BI.Widget, {
function insertBefore (insert, before, isNext, index) { function insertBefore (insert, before, isNext, index) {
insert = self._getOptions(insert); insert = self._getOptions(insert);
before = before && self._getOptions(before); before = before && self._getOptions(before);
var insertKey = BI.isKey(insert.key) ? insert.key : index; var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index);
if (before && children[before.key]) { if (before && children[before.key]) {
var beforeKey = BI.isKey(before.key) ? before.key : index; var beforeKey = BI.isKey(before.key) ? before.key : self._getChildName(index);
var next; var next;
if (isNext) { if (isNext) {
next = children[beforeKey].element.next(); next = children[beforeKey].element.next();

66
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

10
dist/core.js vendored

@ -24785,7 +24785,7 @@ BI.Layout = BI.inherit(BI.Widget, {
this._children = {}; this._children = {};
BI.each(newCh, function (i, child) { BI.each(newCh, function (i, child) {
var node = self._getOptions(child); var node = self._getOptions(child);
var key = node.key == null ? i : node.key; var key = node.key == null ? self._getChildName(i) : node.key;
children[key]._mount(); children[key]._mount();
self._children[self._getChildName(i)] = children[key]; self._children[self._getChildName(i)] = children[key];
}); });
@ -24803,7 +24803,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function addNode (vnode, index) { function addNode (vnode, index) {
var opt = self._getOptions(vnode); var opt = self._getOptions(vnode);
var key = opt.key == null ? index : opt.key; var key = opt.key == null ? self._getChildName(index) : opt.key;
return children[key] = self._addElement(key, vnode); return children[key] = self._addElement(key, vnode);
} }
@ -24817,7 +24817,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function removeVnodes (vnodes, startIdx, endIdx) { function removeVnodes (vnodes, startIdx, endIdx) {
for (; startIdx <= endIdx; ++startIdx) { for (; startIdx <= endIdx; ++startIdx) {
var node = self._getOptions(vnodes[startIdx]); var node = self._getOptions(vnodes[startIdx]);
var key = node.key == null ? startIdx : node.key; var key = node.key == null ? self._getChildName(startIdx) : node.key;
children[key]._destroy(); children[key]._destroy();
} }
} }
@ -24825,9 +24825,9 @@ BI.Layout = BI.inherit(BI.Widget, {
function insertBefore (insert, before, isNext, index) { function insertBefore (insert, before, isNext, index) {
insert = self._getOptions(insert); insert = self._getOptions(insert);
before = before && self._getOptions(before); before = before && self._getOptions(before);
var insertKey = BI.isKey(insert.key) ? insert.key : index; var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index);
if (before && children[before.key]) { if (before && children[before.key]) {
var beforeKey = BI.isKey(before.key) ? before.key : index; var beforeKey = BI.isKey(before.key) ? before.key : self._getChildName(index);
var next; var next;
if (isNext) { if (isNext) {
next = children[beforeKey].element.next(); next = children[beforeKey].element.next();

10
dist/fineui.js vendored

@ -25026,7 +25026,7 @@ BI.Layout = BI.inherit(BI.Widget, {
this._children = {}; this._children = {};
BI.each(newCh, function (i, child) { BI.each(newCh, function (i, child) {
var node = self._getOptions(child); var node = self._getOptions(child);
var key = node.key == null ? i : node.key; var key = node.key == null ? self._getChildName(i) : node.key;
children[key]._mount(); children[key]._mount();
self._children[self._getChildName(i)] = children[key]; self._children[self._getChildName(i)] = children[key];
}); });
@ -25044,7 +25044,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function addNode (vnode, index) { function addNode (vnode, index) {
var opt = self._getOptions(vnode); var opt = self._getOptions(vnode);
var key = opt.key == null ? index : opt.key; var key = opt.key == null ? self._getChildName(index) : opt.key;
return children[key] = self._addElement(key, vnode); return children[key] = self._addElement(key, vnode);
} }
@ -25058,7 +25058,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function removeVnodes (vnodes, startIdx, endIdx) { function removeVnodes (vnodes, startIdx, endIdx) {
for (; startIdx <= endIdx; ++startIdx) { for (; startIdx <= endIdx; ++startIdx) {
var node = self._getOptions(vnodes[startIdx]); var node = self._getOptions(vnodes[startIdx]);
var key = node.key == null ? startIdx : node.key; var key = node.key == null ? self._getChildName(startIdx) : node.key;
children[key]._destroy(); children[key]._destroy();
} }
} }
@ -25066,9 +25066,9 @@ BI.Layout = BI.inherit(BI.Widget, {
function insertBefore (insert, before, isNext, index) { function insertBefore (insert, before, isNext, index) {
insert = self._getOptions(insert); insert = self._getOptions(insert);
before = before && self._getOptions(before); before = before && self._getOptions(before);
var insertKey = BI.isKey(insert.key) ? insert.key : index; var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index);
if (before && children[before.key]) { if (before && children[before.key]) {
var beforeKey = BI.isKey(before.key) ? before.key : index; var beforeKey = BI.isKey(before.key) ? before.key : self._getChildName(index);
var next; var next;
if (isNext) { if (isNext) {
next = children[beforeKey].element.next(); next = children[beforeKey].element.next();

66
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

10
dist/fineui_without_jquery_polyfill.js vendored

@ -15170,7 +15170,7 @@ BI.Layout = BI.inherit(BI.Widget, {
this._children = {}; this._children = {};
BI.each(newCh, function (i, child) { BI.each(newCh, function (i, child) {
var node = self._getOptions(child); var node = self._getOptions(child);
var key = node.key == null ? i : node.key; var key = node.key == null ? self._getChildName(i) : node.key;
children[key]._mount(); children[key]._mount();
self._children[self._getChildName(i)] = children[key]; self._children[self._getChildName(i)] = children[key];
}); });
@ -15188,7 +15188,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function addNode (vnode, index) { function addNode (vnode, index) {
var opt = self._getOptions(vnode); var opt = self._getOptions(vnode);
var key = opt.key == null ? index : opt.key; var key = opt.key == null ? self._getChildName(index) : opt.key;
return children[key] = self._addElement(key, vnode); return children[key] = self._addElement(key, vnode);
} }
@ -15202,7 +15202,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function removeVnodes (vnodes, startIdx, endIdx) { function removeVnodes (vnodes, startIdx, endIdx) {
for (; startIdx <= endIdx; ++startIdx) { for (; startIdx <= endIdx; ++startIdx) {
var node = self._getOptions(vnodes[startIdx]); var node = self._getOptions(vnodes[startIdx]);
var key = node.key == null ? startIdx : node.key; var key = node.key == null ? self._getChildName(startIdx) : node.key;
children[key]._destroy(); children[key]._destroy();
} }
} }
@ -15210,9 +15210,9 @@ BI.Layout = BI.inherit(BI.Widget, {
function insertBefore (insert, before, isNext, index) { function insertBefore (insert, before, isNext, index) {
insert = self._getOptions(insert); insert = self._getOptions(insert);
before = before && self._getOptions(before); before = before && self._getOptions(before);
var insertKey = BI.isKey(insert.key) ? insert.key : index; var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index);
if (before && children[before.key]) { if (before && children[before.key]) {
var beforeKey = BI.isKey(before.key) ? before.key : index; var beforeKey = BI.isKey(before.key) ? before.key : self._getChildName(index);
var next; var next;
if (isNext) { if (isNext) {
next = children[beforeKey].element.next(); next = children[beforeKey].element.next();

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

10
src/core/wrapper/layout.js

@ -432,7 +432,7 @@ BI.Layout = BI.inherit(BI.Widget, {
this._children = {}; this._children = {};
BI.each(newCh, function (i, child) { BI.each(newCh, function (i, child) {
var node = self._getOptions(child); var node = self._getOptions(child);
var key = node.key == null ? i : node.key; var key = node.key == null ? self._getChildName(i) : node.key;
children[key]._mount(); children[key]._mount();
self._children[self._getChildName(i)] = children[key]; self._children[self._getChildName(i)] = children[key];
}); });
@ -450,7 +450,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function addNode (vnode, index) { function addNode (vnode, index) {
var opt = self._getOptions(vnode); var opt = self._getOptions(vnode);
var key = opt.key == null ? index : opt.key; var key = opt.key == null ? self._getChildName(index) : opt.key;
return children[key] = self._addElement(key, vnode); return children[key] = self._addElement(key, vnode);
} }
@ -464,7 +464,7 @@ BI.Layout = BI.inherit(BI.Widget, {
function removeVnodes (vnodes, startIdx, endIdx) { function removeVnodes (vnodes, startIdx, endIdx) {
for (; startIdx <= endIdx; ++startIdx) { for (; startIdx <= endIdx; ++startIdx) {
var node = self._getOptions(vnodes[startIdx]); var node = self._getOptions(vnodes[startIdx]);
var key = node.key == null ? startIdx : node.key; var key = node.key == null ? self._getChildName(startIdx) : node.key;
children[key]._destroy(); children[key]._destroy();
} }
} }
@ -472,9 +472,9 @@ BI.Layout = BI.inherit(BI.Widget, {
function insertBefore (insert, before, isNext, index) { function insertBefore (insert, before, isNext, index) {
insert = self._getOptions(insert); insert = self._getOptions(insert);
before = before && self._getOptions(before); before = before && self._getOptions(before);
var insertKey = BI.isKey(insert.key) ? insert.key : index; var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index);
if (before && children[before.key]) { if (before && children[before.key]) {
var beforeKey = BI.isKey(before.key) ? before.key : index; var beforeKey = BI.isKey(before.key) ? before.key : self._getChildName(index);
var next; var next;
if (isNext) { if (isNext) {
next = children[beforeKey].element.next(); next = children[beforeKey].element.next();

Loading…
Cancel
Save