diff --git a/demo/js/fix-2.0/scene.js b/demo/js/fix-2.0/scene.js index a52e809d4..8e58c2e55 100644 --- a/demo/js/fix-2.0/scene.js +++ b/demo/js/fix-2.0/scene.js @@ -139,6 +139,7 @@ return { type: "bi.tab", defaultShowIndex: this.constant.TAB1, + single: true, tab: { type: "bi.button_group", items: BI.createItems([{ diff --git a/dist/demo.js b/dist/demo.js index cc31af03e..1d76ad8e7 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -10337,6 +10337,7 @@ BI.shortcut("demo.tmp", Demo.Func); return { type: "bi.tab", defaultShowIndex: this.constant.TAB1, + single: true, tab: { type: "bi.button_group", items: BI.createItems([{ diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 5815e1b1a..b460abf9c 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -34,7 +34,7 @@ var unMount = BI.Widget.prototype._unMount; BI.Widget.prototype._unMount = function () { unMount.apply(this, arguments); - this.store && this.store.destroy(); + this.store && BI.isFunction(this.store.destroy) && this.store.destroy(); BI.each(this._watchers, function (i, unwatches) { unwatches = BI.isArray(unwatches) ? unwatches : [unwatches]; BI.each(unwatches, function (j, unwatch) {