From: Manuel Carrasco MoƱino Date: Sun, 3 Nov 2013 11:23:42 +0000 (+0100) Subject: Add curly brackets. Remove static reference X-Git-Tag: release-1.4.0~35^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac3521247be9a60a0ae7d09c16acae84422439a2;p=gwtquery.git Add curly brackets. Remove static reference --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 758fcac9..036a3081 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -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 { */ public static Class Effects = com.google.gwt.query.client.plugins.Effects.Effects; - /** - * Static reference Transitions plugin - */ - public static Class 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 { * */ 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); } /** diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java index 2f2aae3e..b128590b 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java @@ -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; }