From: Manolo Carrasco Date: Mon, 20 May 2013 06:22:52 +0000 (+0200) Subject: Remove empty hooks when running last function X-Git-Tag: release-1.4.0~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c4b39cf049de4ba8d9b446fd0097de34d2bd644b;p=gwtquery.git Remove empty hooks when running last function --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java index 9227d699..e83625d5 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java @@ -326,6 +326,7 @@ public class 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); } }