guy 6 years ago
parent
commit
9ef68ff58a
  1. 7
      dist/bundle.js
  2. 4
      dist/bundle.min.js
  3. 7
      dist/core.js
  4. 7
      dist/fineui.js
  5. 4
      dist/fineui.min.js
  6. 7
      dist/fineui_without_jquery_polyfill.js
  7. 2
      dist/utils.min.js
  8. 7
      src/core/widget.js

7
dist/bundle.js vendored

@ -12125,13 +12125,16 @@ _.extend(BI.OB.prototype, {
BI.mount = function (widget, container, predicate, hydrate) { BI.mount = function (widget, container, predicate, hydrate) {
if (hydrate === true) { if (hydrate === true) {
// 将widget的element元素都挂载好,并建立相互关系 // 将widget的element元素都挂载好,并建立相互关系
widget.element.data("__widgets", [widget]);
var res = widget._mount(true, false, false, function (w) { var res = widget._mount(true, false, false, function (w) {
var ws = w.element.data("__widgets"); BI.each(w._children, function (i, child) {
var ws = child.element.data("__widgets");
if (!ws) { if (!ws) {
ws = []; ws = [];
} }
ws.push(w); ws.push(w);
w.element.data("__widgets", ws); child.element.data("__widgets", ws);
});
predicate && predicate.apply(this, arguments); predicate && predicate.apply(this, arguments);
}); });
// 将新的dom树属性(事件等)patch到已存在的dom上 // 将新的dom树属性(事件等)patch到已存在的dom上

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/core.js vendored

@ -12125,13 +12125,16 @@ _.extend(BI.OB.prototype, {
BI.mount = function (widget, container, predicate, hydrate) { BI.mount = function (widget, container, predicate, hydrate) {
if (hydrate === true) { if (hydrate === true) {
// 将widget的element元素都挂载好,并建立相互关系 // 将widget的element元素都挂载好,并建立相互关系
widget.element.data("__widgets", [widget]);
var res = widget._mount(true, false, false, function (w) { var res = widget._mount(true, false, false, function (w) {
var ws = w.element.data("__widgets"); BI.each(w._children, function (i, child) {
var ws = child.element.data("__widgets");
if (!ws) { if (!ws) {
ws = []; ws = [];
} }
ws.push(w); ws.push(w);
w.element.data("__widgets", ws); child.element.data("__widgets", ws);
});
predicate && predicate.apply(this, arguments); predicate && predicate.apply(this, arguments);
}); });
// 将新的dom树属性(事件等)patch到已存在的dom上 // 将新的dom树属性(事件等)patch到已存在的dom上

7
dist/fineui.js vendored

@ -12367,13 +12367,16 @@ _.extend(BI.OB.prototype, {
BI.mount = function (widget, container, predicate, hydrate) { BI.mount = function (widget, container, predicate, hydrate) {
if (hydrate === true) { if (hydrate === true) {
// 将widget的element元素都挂载好,并建立相互关系 // 将widget的element元素都挂载好,并建立相互关系
widget.element.data("__widgets", [widget]);
var res = widget._mount(true, false, false, function (w) { var res = widget._mount(true, false, false, function (w) {
var ws = w.element.data("__widgets"); BI.each(w._children, function (i, child) {
var ws = child.element.data("__widgets");
if (!ws) { if (!ws) {
ws = []; ws = [];
} }
ws.push(w); ws.push(w);
w.element.data("__widgets", ws); child.element.data("__widgets", ws);
});
predicate && predicate.apply(this, arguments); predicate && predicate.apply(this, arguments);
}); });
// 将新的dom树属性(事件等)patch到已存在的dom上 // 将新的dom树属性(事件等)patch到已存在的dom上

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/fineui_without_jquery_polyfill.js vendored

@ -12125,13 +12125,16 @@ _.extend(BI.OB.prototype, {
BI.mount = function (widget, container, predicate, hydrate) { BI.mount = function (widget, container, predicate, hydrate) {
if (hydrate === true) { if (hydrate === true) {
// 将widget的element元素都挂载好,并建立相互关系 // 将widget的element元素都挂载好,并建立相互关系
widget.element.data("__widgets", [widget]);
var res = widget._mount(true, false, false, function (w) { var res = widget._mount(true, false, false, function (w) {
var ws = w.element.data("__widgets"); BI.each(w._children, function (i, child) {
var ws = child.element.data("__widgets");
if (!ws) { if (!ws) {
ws = []; ws = [];
} }
ws.push(w); ws.push(w);
w.element.data("__widgets", ws); child.element.data("__widgets", ws);
});
predicate && predicate.apply(this, arguments); predicate && predicate.apply(this, arguments);
}); });
// 将新的dom树属性(事件等)patch到已存在的dom上 // 将新的dom树属性(事件等)patch到已存在的dom上

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

7
src/core/widget.js

@ -494,13 +494,16 @@
BI.mount = function (widget, container, predicate, hydrate) { BI.mount = function (widget, container, predicate, hydrate) {
if (hydrate === true) { if (hydrate === true) {
// 将widget的element元素都挂载好,并建立相互关系 // 将widget的element元素都挂载好,并建立相互关系
widget.element.data("__widgets", [widget]);
var res = widget._mount(true, false, false, function (w) { var res = widget._mount(true, false, false, function (w) {
var ws = w.element.data("__widgets"); BI.each(w._children, function (i, child) {
var ws = child.element.data("__widgets");
if (!ws) { if (!ws) {
ws = []; ws = [];
} }
ws.push(w); ws.push(w);
w.element.data("__widgets", ws); child.element.data("__widgets", ws);
});
predicate && predicate.apply(this, arguments); predicate && predicate.apply(this, arguments);
}); });
// 将新的dom树属性(事件等)patch到已存在的dom上 // 将新的dom树属性(事件等)patch到已存在的dom上

Loading…
Cancel
Save