ret.clean();
}
}
-
+
public static EventsListener getInstance(Element e) {
EventsListener ret = getGQueryEventListener(e);
return ret != null ? ret : new EventsListener(e);
}
+ public static void rebind(Element e) {
+ EventsListener ret = getGQueryEventListener(e);
+ if (ret != null && ret.eventBits != 0){
+ ret.sink();
+ }
+ }
+
private static native void cleanGQListeners(Element elem) /*-{
if (elem.__gwtlistener) {
elem.__listener = elem.__gwtlistener;
dispatchEvent(event);
}
- public void rebind() {
- sink();
- }
-
public void unbind(int eventbits) {
unbind(eventbits, null);
}