]> source.dussan.org Git - gwtquery.git/commitdiff
Add curly brackets. Remove static reference
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Sun, 3 Nov 2013 11:23:42 +0000 (12:23 +0100)
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Sun, 3 Nov 2013 11:23:42 +0000 (12:23 +0100)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java

index 758fcac906abc1d171c283d94964ee903b9cedde..036a3081ea56988adbff66d2c07766b486d2e13b 100644 (file)
@@ -49,7 +49,6 @@ import com.google.gwt.query.client.plugins.ajax.Ajax;
 import com.google.gwt.query.client.plugins.ajax.Ajax.Settings;
 import com.google.gwt.query.client.plugins.deferred.Deferred;
 import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.Easing;
-import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.EasingCurve;
 import com.google.gwt.query.client.plugins.effects.Transitions;
 import com.google.gwt.query.client.plugins.events.EventsListener;
 import com.google.gwt.query.client.plugins.widgets.WidgetsUtils;
@@ -137,11 +136,6 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
    */
   public static Class<Effects> Effects = com.google.gwt.query.client.plugins.Effects.Effects;
   
-  /**
-   * Static reference Transitions plugin
-   */
-  public static Class<Transitions> Transitions = com.google.gwt.query.client.plugins.effects.Transitions.Transitions;
-
   /**
    * Implementation engine used for CSS selectors.
    */
@@ -4393,7 +4387,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
    *
    */
   public GQuery transition(Object stringOrProperties, int duration, int delay, Easing easing, Function... funcs) {
-    return as(Transitions).transition(stringOrProperties, duration, easing, delay, funcs);
+    return as(Transitions.Transitions).transition(stringOrProperties, duration, easing, delay, funcs);
   }
 
   /**
index 2f2aae3ea6b007f7728c02ee9bcf47e119c237a3..b128590bfd379aceb52a6e706b62c6fba613b81f 100644 (file)
@@ -168,11 +168,17 @@ public class Transitions extends GQuery {
       });
   
   private static String getVendorPropertyName(String prop) {
-    if (JsUtils.hasProperty(divStyle, prop)) return prop;
+    if (JsUtils.hasProperty(divStyle, prop)) {
+      return prop;
+    }
     String camelProp = JsUtils.camelize(prop);
-    if (JsUtils.hasProperty(divStyle, camelProp)) return camelProp;
+    if (JsUtils.hasProperty(divStyle, camelProp)) {
+      return camelProp;
+    }
     String vendorProp =  prefix + camelProp;
-    if (JsUtils.hasProperty(divStyle, vendorProp)) return vendorProp;
+    if (JsUtils.hasProperty(divStyle, vendorProp)) {
+      return vendorProp;
+    }
     return null;
   }