Browse Source

update

master
guy 7 years ago
parent
commit
b67f24aca4
  1. 8
      bi/core.js
  2. 8
      dist/bundle.js
  3. 2
      dist/bundle.min.js
  4. 8
      dist/core.js
  5. 8
      src/core/shortcut.js

8
bi/core.js

@ -17056,7 +17056,7 @@ BI.View.registerVMRouter = function (viewRouter, modelRouter) {
};
BI.createWidget = function (item, options) {
var el;
var el, w;
options || (options = {});
if (BI.isEmpty(item) && BI.isEmpty(options)) {
return BI.createWidget({
@ -17068,11 +17068,13 @@ BI.View.registerVMRouter = function (viewRouter, modelRouter) {
}
if (item && (item.type || options.type)) {
el = BI.extend({}, options, item);
return BI.Plugin.getObject(el.type, createWidget(BI.Plugin.getWidget(el.type, el)));
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
}
if (item && item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
return BI.Plugin.getObject(el.type, createWidget(BI.Plugin.getWidget(el.type, el)));
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
}
if (item && BI.isWidget(item.el)) {
return item.el;

8
dist/bundle.js vendored

@ -15901,7 +15901,7 @@ BI.View.registerVMRouter = function (viewRouter, modelRouter) {
};
BI.createWidget = function (item, options) {
var el;
var el, w;
options || (options = {});
if (BI.isEmpty(item) && BI.isEmpty(options)) {
return BI.createWidget({
@ -15913,11 +15913,13 @@ BI.View.registerVMRouter = function (viewRouter, modelRouter) {
}
if (item && (item.type || options.type)) {
el = BI.extend({}, options, item);
return BI.Plugin.getObject(el.type, createWidget(BI.Plugin.getWidget(el.type, el)));
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
}
if (item && item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
return BI.Plugin.getObject(el.type, createWidget(BI.Plugin.getWidget(el.type, el)));
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
}
if (item && BI.isWidget(item.el)) {
return item.el;

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/core.js vendored

@ -15850,7 +15850,7 @@ BI.View.registerVMRouter = function (viewRouter, modelRouter) {
};
BI.createWidget = function (item, options) {
var el;
var el, w;
options || (options = {});
if (BI.isEmpty(item) && BI.isEmpty(options)) {
return BI.createWidget({
@ -15862,11 +15862,13 @@ BI.View.registerVMRouter = function (viewRouter, modelRouter) {
}
if (item && (item.type || options.type)) {
el = BI.extend({}, options, item);
return BI.Plugin.getObject(el.type, createWidget(BI.Plugin.getWidget(el.type, el)));
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
}
if (item && item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
return BI.Plugin.getObject(el.type, createWidget(BI.Plugin.getWidget(el.type, el)));
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
}
if (item && BI.isWidget(item.el)) {
return item.el;

8
src/core/shortcut.js

@ -18,7 +18,7 @@
};
BI.createWidget = function (item, options) {
var el;
var el, w;
options || (options = {});
if (BI.isEmpty(item) && BI.isEmpty(options)) {
return BI.createWidget({
@ -30,11 +30,13 @@
}
if (item && (item.type || options.type)) {
el = BI.extend({}, options, item);
return BI.Plugin.getObject(el.type, createWidget(BI.Plugin.getWidget(el.type, el)));
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
}
if (item && item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
return BI.Plugin.getObject(el.type, createWidget(BI.Plugin.getWidget(el.type, el)));
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
}
if (item && BI.isWidget(item.el)) {
return item.el;

Loading…
Cancel
Save