Change-Id: Iec392464f23846c2631be8d1f150292e678861f0
}
/**
- * Removes a binding to a caption from the provided Widget.
+ * Removes a binding to a caption added with bindCaption() from the provided
+ * Widget.
*
* @param widget
* Widget, that was bound to a caption before
*/
- public static void clearCaption(Widget widget) {
+ private static void clearCaption(Widget widget) {
Roles.getTextboxRole()
.removeAriaLabelledbyProperty(widget.getElement());
}
@Override
public void clearAriaCaption() {
- AriaHelper.clearCaption(body);
+ AriaHelper.bindCaption(body, null);
}
}