windy 8 years ago
parent
commit
46a99d8683
  1. 4
      src/base/combination/group.virtual.js
  2. 2
      src/core/base.js

4
src/base/combination/group.virtual.js

@ -67,11 +67,11 @@ BI.VirtualGroup = BI.inherit(BI.Widget, {
var self = this; var self = this;
items = items || []; items = items || [];
this.options.items = items; this.options.items = items;
items = this._packageItems(items, this._packageBtns(items)); items = this._packageBtns(items);
if (!this.layouts) { if (!this.layouts) {
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items)));
} else { } else {
this.layouts.populate(this._packageLayout(items).items); this.layouts.populate(items);
} }
} }
}); });

2
src/core/base.js

@ -141,7 +141,7 @@ if (!window.BI) {
}, },
formatEL: function (obj) { formatEL: function (obj) {
if (obj && obj.el) { if (obj && !obj.type && obj.el) {
return obj; return obj;
} }
return { return {

Loading…
Cancel
Save