]> source.dussan.org Git - gwtquery.git/commitdiff
Fixed tests broken because of the workaround for Issue_20
authorManolo Carrasco <manolo@apache.org>
Wed, 12 May 2010 15:34:39 +0000 (15:34 +0000)
committerManolo Carrasco <manolo@apache.org>
Wed, 12 May 2010 15:34:39 +0000 (15:34 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/EventsListener.java

index 2afb253db8590338319c23b6ab1b413535dfc958..fe7bc2e91a2124d7b3c3fa606efbadaabfbb6172 100644 (file)
@@ -130,16 +130,18 @@ class EventsListener implements EventListener {
   
   public void onBrowserEvent(Event event) {
     // Workaround for Issue_20
-    if (lastType == event.getTypeInt() && lastEvnt - Duration.currentTimeMillis() < 10) {
+    if (lastType == event.getTypeInt()
+        && lastEvnt - Duration.currentTimeMillis() < 10
+        && "body".equalsIgnoreCase(element.getTagName())) {
       return;
     }
     lastEvnt = Duration.currentTimeMillis();
     lastType = event.getTypeInt();
-    
+
     if (originalEventListener != null) {
       originalEventListener.onBrowserEvent(event);
     }
-    
+
     int etype = DOM.eventGetType(event);
     for (int i = 0; i < elementEvents.length(); i++) {
       EventsListener.BindFunction listener = elementEvents.get(i);