]> source.dussan.org Git - gwtquery.git/commitdiff
Remove empty hooks when running last function
authorManolo Carrasco <manolo@apache.org>
Mon, 20 May 2013 06:22:52 +0000 (08:22 +0200)
committerManolo Carrasco <manolo@apache.org>
Mon, 20 May 2013 06:22:52 +0000 (08:22 +0200)
gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java

index 9227d699e36b0adc140e063a2dfdbb50b1a7396e..e83625d52864ba5dd621196b3bad524b89ea4b1b 100644 (file)
@@ -326,6 +326,7 @@ public class QueuePlugin<T extends QueuePlugin<?>> extends GQuery {
       emptyHooks(elem, name).fire();
       // It is the last function, remove the queue to avoid leaks (issue 132)
       removeData(elem, name);
+      removeData(elem, name + EMPTY_HOOKS);
     }
   }