}
}
configListeners.clear();
configListeners = null;
initComponent();
addListener("render", new Function() {
public void execute() {
Component.this.afterRender();
}
});
addListener("beforedestroy", new Function() {
public void execute() {
JavaScriptObjectHelper.setAttribute(Component.this.getConfig(), "__compJ", (String)null);
if(isRendered()) {
doBeforeDestroy(Component.this.getJsObj());
}
beforeDestroy();
}
private native void doBeforeDestroy(JavaScriptObject jsObj) /*-{
if(jsObj != null && jsObj.__compJ) {
jsObj.__compJ = null;
}
}-*/;
});
addListener("destroy", new Function() {
public void execute() {
onDestroy();
}
});
}