From faad919e7f07539b5ebcd2f0d1eb8461b1615fd1 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Wed, 10 Aug 2011 22:33:15 +0000 Subject: [PATCH] Adding a missing method which made gquery.queue() enter in a loop --- .../gwt/query/client/plugins/QueuePlugin.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 dd3b2d17..77ce4b1d 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 @@ -217,6 +217,19 @@ public class QueuePlugin> extends GQuery { return stop(DEFAULT_NAME, clearQueue, false); } + /** + * Stop the function which is currently in execution and depending on the + * value of the parameter: + * - remove it from the effects queue and start the next one. + * - or remove all functions in the effects queue. + * + * If the parameter jump is true, the current stopped effect will set + * the final css properties like if the effect would be completely executed. + */ + public T stop(boolean clearQueue, boolean jumpToEnd) { + return stop(DEFAULT_NAME, clearQueue, jumpToEnd); + } + /** * Stop the function which is currently in execution and depending on the * value of the parameter: -- 2.39.5