diff options
author | Julien Dramaix <julien.dramaix@gmail.com> | 2014-05-03 13:03:28 +0200 |
---|---|---|
committer | Julien Dramaix <julien.dramaix@gmail.com> | 2014-05-03 13:03:28 +0200 |
commit | 6669c616d5ed8b673031d708243da009c6fdeac4 (patch) | |
tree | d6a173b33633fa8f788edaf4a339d4985836102c /gwtquery-core/src | |
parent | 19094f25e25e82a5c498272ef0defb4bc18e4b44 (diff) | |
parent | bb03416b18fc13ca14fea2087285340b138018b1 (diff) | |
download | gwtquery-6669c616d5ed8b673031d708243da009c6fdeac4.tar.gz gwtquery-6669c616d5ed8b673031d708243da009c6fdeac4.zip |
Merge pull request #281 from gwtquery/mcm_loop
Fix loop when calling GQuery.slideToggle without arguments
Diffstat (limited to 'gwtquery-core/src')
-rwxr-xr-x | gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java index 7f6ce927..64818c9c 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java @@ -563,6 +563,15 @@ public class Effects extends QueuePlugin<Effects> { } /** + * Toggle the visibility of all matched elements by adjusting their height and firing an optional + * callback after completion. Only the height is adjusted for this animation, causing all matched + * elements to be hidden or shown in a "sliding" manner + */ + public Effects slideToggle(Function... f) { + return as(Effects).slideToggle(Speed.DEFAULT, f); + } + + /** * Toggle the visibility of all matched elements by adjusting their height and * firing an optional callback after completion. Only the height is adjusted * for this animation, causing all matched elements to be hidden or shown in a |