/** * * @author GH * */ class EBitmapLabel extends eui.BitmapLabel { /** 是否创建完毕 */ public isCreated: boolean; /** 是否释放了资源 */ public isDisposed: boolean; public constructor(text?: string) { super(text); } public childrenCreated(): void { super.childrenCreated(); this.isCreated = true; } public dispose(): void { var self = this; if(self.isDisposed) { return; } self.isDisposed = true; self.isCreated = false; } }