diff --git a/src/base/combination/tab.js b/src/base/combination/tab.js index 30259e71a..2d88a81e4 100644 --- a/src/base/combination/tab.js +++ b/src/base/combination/tab.js @@ -92,7 +92,7 @@ BI.Tab = BI.inherit(BI.Widget, { created: function () { var o = this.options; if (o.showIndex !== false) { - this.setSelect(o.showIndex); + this.setSelect(BI.isFunction(o.showIndex) ? o.showIndex() : o.showIndex); } },