Browse Source

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

* commit '80f00fa03a688891093c22f0829341dd6796c916':
  update
  update
  update
es6
guy 6 years ago
parent
commit
3b2e323a3d
  1. 6
      dist/base.js
  2. 19
      dist/bundle.js
  3. 22
      dist/bundle.min.js
  4. 2
      dist/case.js
  5. 11
      dist/core.js
  6. 19
      dist/fineui.js
  7. 22
      dist/fineui.min.js
  8. 13
      dist/fineui_without_jquery_polyfill.js
  9. 2
      dist/utils.min.js
  10. 2
      src/base/list/virtuallist.js
  11. 2
      src/base/single/icon/icon.js
  12. 2
      src/base/tree/treeview.js
  13. 2
      src/case/colorchooser/colorchooser.trigger.js
  14. 2
      src/core/platform/dom/dom.js
  15. 3
      src/core/widget.js
  16. 6
      src/core/wrapper/layout.js

6
dist/base.js vendored

@ -1639,7 +1639,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
if(BI.isNotNull(o.value)) { if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value); this.setSelectedValue(o.value);
} }
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
}, },
@ -6390,7 +6390,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true; 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; var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) { for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index; var index = this.cache[i].index;
@ -8936,7 +8936,7 @@ BI.Icon = BI.inherit(BI.Single, {
}, },
_init: function () { _init: function () {
BI.Icon.superclass._init.apply(this, arguments); BI.Icon.superclass._init.apply(this, arguments);
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
} }

19
dist/bundle.js vendored

@ -12114,6 +12114,9 @@ _.extend(BI.OB.prototype, {
return $(document.createElement(o.tagName)); return $(document.createElement(o.tagName));
} }
return $(widget); return $(widget);
},
createFragment: function () {
return document.createDocumentFragment();
} }
}); });
})();(function () { })();(function () {
@ -14700,7 +14703,7 @@ BI.Layout = BI.inherit(BI.Widget, {
_mountChildren: function () { _mountChildren: function () {
var self = this; var self = this;
var frag = document.createDocumentFragment(); var frag = BI.Widget._renderEngine.createFragment();
var hasChild = false; var hasChild = false;
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
if (widget.element !== self.element) { if (widget.element !== self.element) {
@ -14929,7 +14932,7 @@ BI.Layout = BI.inherit(BI.Widget, {
addItems: function (items) { addItems: function (items) {
var self = this, o = this.options; var self = this, o = this.options;
var fragment = document.createDocumentFragment(); var fragment = BI.Widget._renderEngine.createFragment();
var added = []; var added = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
var w = self._addElement(o.items.length, item); var w = self._addElement(o.items.length, item);
@ -14947,7 +14950,7 @@ BI.Layout = BI.inherit(BI.Widget, {
prependItems: function (items) { prependItems: function (items) {
var self = this; var self = this;
items = items || []; items = items || [];
var fragment = document.createDocumentFragment(); var fragment = BI.Widget._renderEngine.createFragment();
var added = []; var added = [];
for (var i = items.length - 1; i >= 0; i--) { for (var i = items.length - 1; i >= 0; i--) {
this._addItemAt(0, items[i]); this._addItemAt(0, items[i]);
@ -18496,7 +18499,7 @@ BI.extend(BI.DOM, {
if (BI.isEmpty(doms)) { if (BI.isEmpty(doms)) {
return; return;
} }
var frag = document.createDocumentFragment(); var frag = BI.Widget._renderEngine.createFragment();
BI.each(doms, function (i, dom) { BI.each(doms, function (i, dom) {
dom instanceof BI.Widget && (dom = dom.element); dom instanceof BI.Widget && (dom = dom.element);
dom instanceof $ && dom[0] && frag.appendChild(dom[0]); dom instanceof $ && dom[0] && frag.appendChild(dom[0]);
@ -36894,7 +36897,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
if(BI.isNotNull(o.value)) { if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value); this.setSelectedValue(o.value);
} }
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
}, },
@ -41645,7 +41648,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true; 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; var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) { for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index; var index = this.cache[i].index;
@ -44191,7 +44194,7 @@ BI.Icon = BI.inherit(BI.Single, {
}, },
_init: function () { _init: function () {
BI.Icon.superclass._init.apply(this, arguments); BI.Icon.superclass._init.apply(this, arguments);
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
} }
@ -51272,7 +51275,7 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
BI.ColorChooserTrigger.superclass._init.apply(this, arguments); BI.ColorChooserTrigger.superclass._init.apply(this, arguments);
this.colorContainer = BI.createWidget({ this.colorContainer = BI.createWidget({
type: "bi.layout", type: "bi.layout",
cls: "color-chooser-trigger-content" + (BI.isIE9Below() ? " hack" : "") cls: "color-chooser-trigger-content" + (BI.isIE9Below && BI.isIE9Below() ? " hack" : "")
}); });
var down = BI.createWidget({ var down = BI.createWidget({

22
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/case.js vendored

@ -2655,7 +2655,7 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
BI.ColorChooserTrigger.superclass._init.apply(this, arguments); BI.ColorChooserTrigger.superclass._init.apply(this, arguments);
this.colorContainer = BI.createWidget({ this.colorContainer = BI.createWidget({
type: "bi.layout", type: "bi.layout",
cls: "color-chooser-trigger-content" + (BI.isIE9Below() ? " hack" : "") cls: "color-chooser-trigger-content" + (BI.isIE9Below && BI.isIE9Below() ? " hack" : "")
}); });
var down = BI.createWidget({ var down = BI.createWidget({

11
dist/core.js vendored

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

19
dist/fineui.js vendored

@ -12355,6 +12355,9 @@ _.extend(BI.OB.prototype, {
return $(document.createElement(o.tagName)); return $(document.createElement(o.tagName));
} }
return $(widget); return $(widget);
},
createFragment: function () {
return document.createDocumentFragment();
} }
}); });
})();(function () { })();(function () {
@ -14941,7 +14944,7 @@ BI.Layout = BI.inherit(BI.Widget, {
_mountChildren: function () { _mountChildren: function () {
var self = this; var self = this;
var frag = document.createDocumentFragment(); var frag = BI.Widget._renderEngine.createFragment();
var hasChild = false; var hasChild = false;
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
if (widget.element !== self.element) { if (widget.element !== self.element) {
@ -15170,7 +15173,7 @@ BI.Layout = BI.inherit(BI.Widget, {
addItems: function (items) { addItems: function (items) {
var self = this, o = this.options; var self = this, o = this.options;
var fragment = document.createDocumentFragment(); var fragment = BI.Widget._renderEngine.createFragment();
var added = []; var added = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
var w = self._addElement(o.items.length, item); var w = self._addElement(o.items.length, item);
@ -15188,7 +15191,7 @@ BI.Layout = BI.inherit(BI.Widget, {
prependItems: function (items) { prependItems: function (items) {
var self = this; var self = this;
items = items || []; items = items || [];
var fragment = document.createDocumentFragment(); var fragment = BI.Widget._renderEngine.createFragment();
var added = []; var added = [];
for (var i = items.length - 1; i >= 0; i--) { for (var i = items.length - 1; i >= 0; i--) {
this._addItemAt(0, items[i]); this._addItemAt(0, items[i]);
@ -18737,7 +18740,7 @@ BI.extend(BI.DOM, {
if (BI.isEmpty(doms)) { if (BI.isEmpty(doms)) {
return; return;
} }
var frag = document.createDocumentFragment(); var frag = BI.Widget._renderEngine.createFragment();
BI.each(doms, function (i, dom) { BI.each(doms, function (i, dom) {
dom instanceof BI.Widget && (dom = dom.element); dom instanceof BI.Widget && (dom = dom.element);
dom instanceof $ && dom[0] && frag.appendChild(dom[0]); dom instanceof $ && dom[0] && frag.appendChild(dom[0]);
@ -37135,7 +37138,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
if(BI.isNotNull(o.value)) { if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value); this.setSelectedValue(o.value);
} }
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
}, },
@ -41886,7 +41889,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true; 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; var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) { for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index; var index = this.cache[i].index;
@ -44432,7 +44435,7 @@ BI.Icon = BI.inherit(BI.Single, {
}, },
_init: function () { _init: function () {
BI.Icon.superclass._init.apply(this, arguments); BI.Icon.superclass._init.apply(this, arguments);
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
} }
@ -51513,7 +51516,7 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
BI.ColorChooserTrigger.superclass._init.apply(this, arguments); BI.ColorChooserTrigger.superclass._init.apply(this, arguments);
this.colorContainer = BI.createWidget({ this.colorContainer = BI.createWidget({
type: "bi.layout", type: "bi.layout",
cls: "color-chooser-trigger-content" + (BI.isIE9Below() ? " hack" : "") cls: "color-chooser-trigger-content" + (BI.isIE9Below && BI.isIE9Below() ? " hack" : "")
}); });
var down = BI.createWidget({ var down = BI.createWidget({

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

@ -12114,6 +12114,9 @@ _.extend(BI.OB.prototype, {
return $(document.createElement(o.tagName)); return $(document.createElement(o.tagName));
} }
return $(widget); return $(widget);
},
createFragment: function () {
return document.createDocumentFragment();
} }
}); });
})();(function () { })();(function () {
@ -14446,7 +14449,7 @@ BI.Layout = BI.inherit(BI.Widget, {
_mountChildren: function () { _mountChildren: function () {
var self = this; var self = this;
var frag = document.createDocumentFragment(); var frag = BI.Widget._renderEngine.createFragment();
var hasChild = false; var hasChild = false;
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
if (widget.element !== self.element) { if (widget.element !== self.element) {
@ -14675,7 +14678,7 @@ BI.Layout = BI.inherit(BI.Widget, {
addItems: function (items) { addItems: function (items) {
var self = this, o = this.options; var self = this, o = this.options;
var fragment = document.createDocumentFragment(); var fragment = BI.Widget._renderEngine.createFragment();
var added = []; var added = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
var w = self._addElement(o.items.length, item); var w = self._addElement(o.items.length, item);
@ -14693,7 +14696,7 @@ BI.Layout = BI.inherit(BI.Widget, {
prependItems: function (items) { prependItems: function (items) {
var self = this; var self = this;
items = items || []; items = items || [];
var fragment = document.createDocumentFragment(); var fragment = BI.Widget._renderEngine.createFragment();
var added = []; var added = [];
for (var i = items.length - 1; i >= 0; i--) { for (var i = items.length - 1; i >= 0; i--) {
this._addItemAt(0, items[i]); this._addItemAt(0, items[i]);
@ -29577,7 +29580,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.cache[i].destroyed = true; 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; var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) { for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index; var index = this.cache[i].index;
@ -32123,7 +32126,7 @@ BI.Icon = BI.inherit(BI.Single, {
}, },
_init: function () { _init: function () {
BI.Icon.superclass._init.apply(this, arguments); BI.Icon.superclass._init.apply(this, arguments);
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
} }

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; 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; var currentFragment = firstFragment;
for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) { for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {
var index = this.cache[i].index; var index = this.cache[i].index;

2
src/base/single/icon/icon.js

@ -13,7 +13,7 @@ BI.Icon = BI.inherit(BI.Single, {
}, },
_init: function () { _init: function () {
BI.Icon.superclass._init.apply(this, arguments); BI.Icon.superclass._init.apply(this, arguments);
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
} }

2
src/base/tree/treeview.js

@ -33,7 +33,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
if(BI.isNotNull(o.value)) { if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value); this.setSelectedValue(o.value);
} }
if (BI.isIE9Below()) { if (BI.isIE9Below && BI.isIE9Below()) {
this.element.addClass("hack"); this.element.addClass("hack");
} }
}, },

2
src/case/colorchooser/colorchooser.trigger.js

@ -19,7 +19,7 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
BI.ColorChooserTrigger.superclass._init.apply(this, arguments); BI.ColorChooserTrigger.superclass._init.apply(this, arguments);
this.colorContainer = BI.createWidget({ this.colorContainer = BI.createWidget({
type: "bi.layout", type: "bi.layout",
cls: "color-chooser-trigger-content" + (BI.isIE9Below() ? " hack" : "") cls: "color-chooser-trigger-content" + (BI.isIE9Below && BI.isIE9Below() ? " hack" : "")
}); });
var down = BI.createWidget({ var down = BI.createWidget({

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

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

3
src/core/widget.js

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

Loading…
Cancel
Save