|
|
@ -45,8 +45,8 @@ BI.Tab = BI.inherit(BI.Widget, { |
|
|
|
cardCreator: function (v) { |
|
|
|
cardCreator: function (v) { |
|
|
|
var card = o.cardCreator.apply(self, arguments); |
|
|
|
var card = o.cardCreator.apply(self, arguments); |
|
|
|
self.cardMap[v] = card; |
|
|
|
self.cardMap[v] = card; |
|
|
|
|
|
|
|
|
|
|
|
return card; |
|
|
|
return card; |
|
|
|
}, |
|
|
|
}, |
|
|
|
afterCardShow: function (v) { |
|
|
|
afterCardShow: function (v) { |
|
|
|
self._deleteOtherCards(v); |
|
|
|
self._deleteOtherCards(v); |
|
|
@ -114,8 +114,8 @@ return card; |
|
|
|
if (BI.isEqual(name, (cardname + ""))) { |
|
|
|
if (BI.isEqual(name, (cardname + ""))) { |
|
|
|
self.layout.deleteCardByName(name); |
|
|
|
self.layout.deleteCardByName(name); |
|
|
|
delete self.cardMap[name]; |
|
|
|
delete self.cardMap[name]; |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -134,7 +134,7 @@ return true; |
|
|
|
|
|
|
|
|
|
|
|
getTab: function (v) { |
|
|
|
getTab: function (v) { |
|
|
|
this._assertCard(v); |
|
|
|
this._assertCard(v); |
|
|
|
|
|
|
|
|
|
|
|
return this.layout.getCardByName(v); |
|
|
|
return this.layout.getCardByName(v); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|