|
|
@ -109,7 +109,10 @@ export class CardLayout extends Layout { |
|
|
|
|
|
|
|
|
|
|
|
const child = this._children[this._getChildName(cardName)]; |
|
|
|
const child = this._children[this._getChildName(cardName)]; |
|
|
|
this._deleteCardByName(cardName); |
|
|
|
this._deleteCardByName(cardName); |
|
|
|
child && child._destroy(); |
|
|
|
if (child) { |
|
|
|
|
|
|
|
child._destroy(); |
|
|
|
|
|
|
|
child = null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
addCardByName(cardName, cardItem) { |
|
|
|
addCardByName(cardName, cardItem) { |
|
|
|