guy 6 years ago
parent
commit
f3a00ba942
  1. 2
      dist/base.js
  2. 15
      dist/bundle.js
  3. 22
      dist/bundle.min.js
  4. 13
      dist/core.js
  5. 15
      dist/fineui.js
  6. 22
      dist/fineui.min.js
  7. 13
      dist/fineui_without_jquery_polyfill.js
  8. 2
      dist/utils.min.js
  9. 2
      src/base/list/virtuallist.js
  10. 2
      src/core/platform/dom/dom.js
  11. 5
      src/core/widget.js
  12. 6
      src/core/wrapper/layout.js

2
dist/base.js vendored

@ -6390,7 +6390,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true;
}
}
var firstFragment = document.createDocumentFragment(), lastFragment = document.createDocumentFragment();
var firstFragment = BI.Widget._renderEngine.createFragment(), lastFragment = BI.Widget._renderEngine.createFragment();
var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index;

15
dist/bundle.js vendored

@ -12106,7 +12106,7 @@ _.extend(BI.OB.prototype, {
};
BI.Widget.registerRenderEngine({
createElement: function (widget) {
if(BI.isWidget(widget)) {
if (BI.isWidget(widget)) {
var o = widget.options;
if (o.element) {
return $(o.element);
@ -12114,6 +12114,9 @@ _.extend(BI.OB.prototype, {
return $(document.createElement(o.tagName));
}
return $(widget);
},
createFragment: function () {
return document.createDocumentFragment();
}
});
})();(function () {
@ -14700,7 +14703,7 @@ BI.Layout = BI.inherit(BI.Widget, {
_mountChildren: function () {
var self = this;
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
var hasChild = false;
BI.each(this._children, function (i, widget) {
if (widget.element !== self.element) {
@ -14929,7 +14932,7 @@ BI.Layout = BI.inherit(BI.Widget, {
addItems: function (items) {
var self = this, o = this.options;
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
BI.each(items, function (i, item) {
var w = self._addElement(o.items.length, item);
@ -14947,7 +14950,7 @@ BI.Layout = BI.inherit(BI.Widget, {
prependItems: function (items) {
var self = this;
items = items || [];
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
for (var i = items.length - 1; i >= 0; i--) {
this._addItemAt(0, items[i]);
@ -18491,7 +18494,7 @@ BI.extend(BI.DOM, {
if (BI.isEmpty(doms)) {
return;
}
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
BI.each(doms, function (i, dom) {
dom instanceof BI.Widget && (dom = dom.element);
dom instanceof $ && dom[0] && frag.appendChild(dom[0]);
@ -41640,7 +41643,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true;
}
}
var firstFragment = document.createDocumentFragment(), lastFragment = document.createDocumentFragment();
var firstFragment = BI.Widget._renderEngine.createFragment(), lastFragment = BI.Widget._renderEngine.createFragment();
var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index;

22
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

13
dist/core.js vendored

@ -12106,7 +12106,7 @@ _.extend(BI.OB.prototype, {
};
BI.Widget.registerRenderEngine({
createElement: function (widget) {
if(BI.isWidget(widget)) {
if (BI.isWidget(widget)) {
var o = widget.options;
if (o.element) {
return $(o.element);
@ -12114,6 +12114,9 @@ _.extend(BI.OB.prototype, {
return $(document.createElement(o.tagName));
}
return $(widget);
},
createFragment: function () {
return document.createDocumentFragment();
}
});
})();(function () {
@ -14700,7 +14703,7 @@ BI.Layout = BI.inherit(BI.Widget, {
_mountChildren: function () {
var self = this;
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
var hasChild = false;
BI.each(this._children, function (i, widget) {
if (widget.element !== self.element) {
@ -14929,7 +14932,7 @@ BI.Layout = BI.inherit(BI.Widget, {
addItems: function (items) {
var self = this, o = this.options;
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
BI.each(items, function (i, item) {
var w = self._addElement(o.items.length, item);
@ -14947,7 +14950,7 @@ BI.Layout = BI.inherit(BI.Widget, {
prependItems: function (items) {
var self = this;
items = items || [];
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
for (var i = items.length - 1; i >= 0; i--) {
this._addItemAt(0, items[i]);
@ -18491,7 +18494,7 @@ BI.extend(BI.DOM, {
if (BI.isEmpty(doms)) {
return;
}
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
BI.each(doms, function (i, dom) {
dom instanceof BI.Widget && (dom = dom.element);
dom instanceof $ && dom[0] && frag.appendChild(dom[0]);

15
dist/fineui.js vendored

@ -12347,7 +12347,7 @@ _.extend(BI.OB.prototype, {
};
BI.Widget.registerRenderEngine({
createElement: function (widget) {
if(BI.isWidget(widget)) {
if (BI.isWidget(widget)) {
var o = widget.options;
if (o.element) {
return $(o.element);
@ -12355,6 +12355,9 @@ _.extend(BI.OB.prototype, {
return $(document.createElement(o.tagName));
}
return $(widget);
},
createFragment: function () {
return document.createDocumentFragment();
}
});
})();(function () {
@ -14941,7 +14944,7 @@ BI.Layout = BI.inherit(BI.Widget, {
_mountChildren: function () {
var self = this;
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
var hasChild = false;
BI.each(this._children, function (i, widget) {
if (widget.element !== self.element) {
@ -15170,7 +15173,7 @@ BI.Layout = BI.inherit(BI.Widget, {
addItems: function (items) {
var self = this, o = this.options;
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
BI.each(items, function (i, item) {
var w = self._addElement(o.items.length, item);
@ -15188,7 +15191,7 @@ BI.Layout = BI.inherit(BI.Widget, {
prependItems: function (items) {
var self = this;
items = items || [];
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
for (var i = items.length - 1; i >= 0; i--) {
this._addItemAt(0, items[i]);
@ -18732,7 +18735,7 @@ BI.extend(BI.DOM, {
if (BI.isEmpty(doms)) {
return;
}
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
BI.each(doms, function (i, dom) {
dom instanceof BI.Widget && (dom = dom.element);
dom instanceof $ && dom[0] && frag.appendChild(dom[0]);
@ -41881,7 +41884,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true;
}
}
var firstFragment = document.createDocumentFragment(), lastFragment = document.createDocumentFragment();
var firstFragment = BI.Widget._renderEngine.createFragment(), lastFragment = BI.Widget._renderEngine.createFragment();
var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index;

22
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

13
dist/fineui_without_jquery_polyfill.js vendored

@ -12106,7 +12106,7 @@ _.extend(BI.OB.prototype, {
};
BI.Widget.registerRenderEngine({
createElement: function (widget) {
if(BI.isWidget(widget)) {
if (BI.isWidget(widget)) {
var o = widget.options;
if (o.element) {
return $(o.element);
@ -12114,6 +12114,9 @@ _.extend(BI.OB.prototype, {
return $(document.createElement(o.tagName));
}
return $(widget);
},
createFragment: function () {
return document.createDocumentFragment();
}
});
})();(function () {
@ -14446,7 +14449,7 @@ BI.Layout = BI.inherit(BI.Widget, {
_mountChildren: function () {
var self = this;
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
var hasChild = false;
BI.each(this._children, function (i, widget) {
if (widget.element !== self.element) {
@ -14675,7 +14678,7 @@ BI.Layout = BI.inherit(BI.Widget, {
addItems: function (items) {
var self = this, o = this.options;
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
BI.each(items, function (i, item) {
var w = self._addElement(o.items.length, item);
@ -14693,7 +14696,7 @@ BI.Layout = BI.inherit(BI.Widget, {
prependItems: function (items) {
var self = this;
items = items || [];
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
for (var i = items.length - 1; i >= 0; i--) {
this._addItemAt(0, items[i]);
@ -29572,7 +29575,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true;
}
}
var firstFragment = document.createDocumentFragment(), lastFragment = document.createDocumentFragment();
var firstFragment = BI.Widget._renderEngine.createFragment(), lastFragment = BI.Widget._renderEngine.createFragment();
var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index;

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
src/base/list/virtuallist.js

@ -114,7 +114,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true;
}
}
var firstFragment = document.createDocumentFragment(), lastFragment = document.createDocumentFragment();
var firstFragment = BI.Widget._renderEngine.createFragment(), lastFragment = BI.Widget._renderEngine.createFragment();
var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index;

2
src/core/platform/dom/dom.js

@ -13,7 +13,7 @@ BI.extend(BI.DOM, {
if (BI.isEmpty(doms)) {
return;
}
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
BI.each(doms, function (i, dom) {
dom instanceof BI.Widget && (dom = dom.element);
dom instanceof $ && dom[0] && frag.appendChild(dom[0]);

5
src/core/widget.js

@ -476,7 +476,7 @@
};
BI.Widget.registerRenderEngine({
createElement: function (widget) {
if(BI.isWidget(widget)) {
if (BI.isWidget(widget)) {
var o = widget.options;
if (o.element) {
return $(o.element);
@ -484,6 +484,9 @@
return $(document.createElement(o.tagName));
}
return $(widget);
},
createFragment: function () {
return document.createDocumentFragment();
}
});
})();

6
src/core/wrapper/layout.js

@ -69,7 +69,7 @@ BI.Layout = BI.inherit(BI.Widget, {
_mountChildren: function () {
var self = this;
var frag = document.createDocumentFragment();
var frag = BI.Widget._renderEngine.createFragment();
var hasChild = false;
BI.each(this._children, function (i, widget) {
if (widget.element !== self.element) {
@ -298,7 +298,7 @@ BI.Layout = BI.inherit(BI.Widget, {
addItems: function (items) {
var self = this, o = this.options;
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
BI.each(items, function (i, item) {
var w = self._addElement(o.items.length, item);
@ -316,7 +316,7 @@ BI.Layout = BI.inherit(BI.Widget, {
prependItems: function (items) {
var self = this;
items = items || [];
var fragment = document.createDocumentFragment();
var fragment = BI.Widget._renderEngine.createFragment();
var added = [];
for (var i = items.length - 1; i >= 0; i--) {
this._addItemAt(0, items[i]);

Loading…
Cancel
Save