errorMessage.updateFromUIDL(errorUidl);
} else if (errorIndicatorElement != null) {
- DOM.setStyleAttribute(errorIndicatorElement, "display", "none");
+ DOM.removeChild(getElement(), errorIndicatorElement);
+ errorIndicatorElement = null;
}
if (uidl.hasAttribute("icon")) {
DOM.insertChild(getElement(), icon.getElement(), 0);
}
icon.setUri(uidl.getStringAttribute("icon"));
+ } else {
+ if (icon != null) {
+ DOM.removeChild(getElement(), icon.getElement());
+ icon = null;
+ }
}
// handle description
if (uidl.hasAttribute("description")) {
setTitle(uidl.getStringAttribute("description"));
+ } else {
+ setTitle(null);
}
}