|
|
|
@ -43,9 +43,10 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
return self.showIndex + v; |
|
|
|
|
}, |
|
|
|
|
cardCreator: function (v) { |
|
|
|
|
BI.Widget.pushContext(self); |
|
|
|
|
var card = o.cardCreator(v); |
|
|
|
|
BI.Widget.popContext(); |
|
|
|
|
self.cardMap[v] = card; |
|
|
|
|
|
|
|
|
|
return card; |
|
|
|
|
}, |
|
|
|
|
afterCardCreated: BI.bind(this.afterCardCreated, this), |
|
|
|
@ -104,7 +105,9 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
_assertCard: function (v) { |
|
|
|
|
if (!this.layout.isCardExisted(v)) { |
|
|
|
|
BI.Widget.pushContext(this); |
|
|
|
|
var card = this.options.cardCreator(v); |
|
|
|
|
BI.Widget.popContext(); |
|
|
|
|
this.cardMap[v] = card; |
|
|
|
|
this.layout.addCardByName(v, card); |
|
|
|
|
this.afterCardCreated(v); |
|
|
|
|