]> source.dussan.org Git - gwtquery.git/commitdiff
adding a method to return the original gwt eventlistener of an element
authorManolo Carrasco <manolo@apache.org>
Sun, 21 Nov 2010 09:44:16 +0000 (09:44 +0000)
committerManolo Carrasco <manolo@apache.org>
Sun, 21 Nov 2010 09:44:16 +0000 (09:44 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/EventsListener.java

index 01fe9498c37ce9f2cc432864ad82c8f412ba9bc7..5b8fc8f422fe65d69d8c666e4f9399090af9f785 100644 (file)
@@ -32,6 +32,7 @@ import com.google.gwt.user.client.EventListener;
  * 
  * The class takes care of calling the appropriate functions for each browser
  * event and it also calls sinkEvents method.
+ * 
  */
 public class EventsListener implements EventListener {
 
@@ -186,6 +187,15 @@ public class EventsListener implements EventListener {
     }
   }
   
+  /**
+   * Return the original gwt EventListener associated with
+   * this element, before gquery replaced it to introduce its
+   * own event handler.
+   */
+  public EventListener getOriginalEventListener() {
+    return originalEventListener;
+  }
+  
   public void onBrowserEvent(Event event) {
     // Workaround for Issue_20
     if (lastType == event.getTypeInt()