aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core
diff options
context:
space:
mode:
authorjdramaix <julien.dramaix@gmail.com>2012-10-15 12:28:31 +0200
committerjdramaix <julien.dramaix@gmail.com>2012-10-15 12:28:31 +0200
commitd8afa657f09cc139ea41f0f5e646f7bc1b5100a7 (patch)
treefacc0a4289099c182f9d7b4d13740004e3c9a058 /gwtquery-core
parent03416384193306569b447544e6446b4a469a7e77 (diff)
downloadgwtquery-d8afa657f09cc139ea41f0f5e646f7bc1b5100a7.tar.gz
gwtquery-d8afa657f09cc139ea41f0f5e646f7bc1b5100a7.zip
fix bug in hide method
Diffstat (limited to 'gwtquery-core')
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java12
1 files changed, 6 insertions, 6 deletions
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 831e9b61..9af3215c 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
@@ -15,11 +15,6 @@ package com.google.gwt.query.client;
import static com.google.gwt.query.client.plugins.QueuePlugin.Queue;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Map;
-
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
@@ -66,6 +61,11 @@ import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.GqUi;
import com.google.gwt.user.client.ui.Widget;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
/**
* GwtQuery is a GWT clone of the popular jQuery library.
*/
@@ -2294,7 +2294,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
for (Element e : elements) {
String currentDisplay = getStyleImpl().curCSS(e, "display", false);
Object old = data(e, OLD_DISPLAY, null);
- if (old == null && !currentDisplay.matches("(|none)")) {
+ if (old == null && currentDisplay.length() != 0 && !"none".equals(currentDisplay)) {
data(e, OLD_DISPLAY, currentDisplay);
}
}