]> source.dussan.org Git - gwtquery.git/commitdiff
call local method to remove repeated code
authorManolo Carrasco <manolo@apache.org>
Wed, 5 May 2010 13:26:07 +0000 (13:26 +0000)
committerManolo Carrasco <manolo@apache.org>
Wed, 5 May 2010 13:26:07 +0000 (13:26 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/Effects.java

index f189a9948f09643cbb1fa65c6edf0da50d0d7f38..d442491e20cad4de883eb2f6122cdb5a462013b1 100644 (file)
@@ -490,7 +490,7 @@ public class Effects extends GQuery {
    * some form of height and width associated with them.\r
    */\r
   public Effects fadeIn(Speed speed, Function callback) {\r
-    return animate($$("opacity: \"show\""), speed, Easing.LINEAR, callback);\r
+    return fadeIn(speed.duration, callback);\r
   }\r
 \r
   /**\r
@@ -541,7 +541,7 @@ public class Effects extends GQuery {
    * them.\r
    */\r
   public Effects fadeOut(Speed speed, Function callback) {\r
-    return animate($$("opacity: \"hide\""), speed, Easing.LINEAR, callback);\r
+    return fadeOut(speed.duration, callback);\r
   }\r
 \r
   /**\r