diff --git a/demo/js/center.js b/demo/js/center.js index e379cdddc..ca9930550 100644 --- a/demo/js/center.js +++ b/demo/js/center.js @@ -7,10 +7,6 @@ Demo.Center = BI.inherit(BI.Widget, { return { type: "bi.router_view" } - }, - - setValue: function (v) { - // this.tab.setSelect(v); } }); BI.shortcut("demo.center", Demo.Center); \ No newline at end of file diff --git a/demo/js/main.js b/demo/js/main.js index 0fa50a657..ab57470d5 100644 --- a/demo/js/main.js +++ b/demo/js/main.js @@ -7,12 +7,6 @@ Demo.Main = BI.inherit(BI.Widget, { return BI.Stores.getStore("demo.store.main"); }, - watch: { - activeCard: function (v) { - this.center.setValue(v); - } - }, - beforeInit: function (cb) { this.store.init(cb); }, diff --git a/demo/js/main.store.js b/demo/js/main.store.js index 26ca4b16d..3efd92eee 100644 --- a/demo/js/main.store.js +++ b/demo/js/main.store.js @@ -42,7 +42,6 @@ }, handleTreeSelectChange: function (v) { - this.model.activeCard = v; var matched = BI.some(Demo.CONFIG, function (index, item) { if (item.value === v) { BI.router.push(item.text);