|
|
|
@ -44,7 +44,7 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
cardLayout: this.layout, |
|
|
|
|
cardCreator: function (v) { |
|
|
|
|
BI.Widget.execWithContext(self, function () { |
|
|
|
|
self.cardMap[v] = o.cardCreator.call(self, v); |
|
|
|
|
self.cardMap[v] = o.cardCreator(v); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return self.cardMap[v]; |
|
|
|
@ -75,7 +75,7 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
if (!this.layout.isCardExisted(v)) { |
|
|
|
|
BI.Widget.execWithContext(this, function () { |
|
|
|
|
self.cardMap[v] = o.cardCreator.call(self, v); |
|
|
|
|
self.cardMap[v] = o.cardCreator(v); |
|
|
|
|
}); |
|
|
|
|
this.layout.addCardByName(v, this.cardMap[v]); |
|
|
|
|
} |
|
|
|
|