aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-10-26 16:34:27 +0000
committerManolo Carrasco <manolo@apache.org>2011-10-26 16:34:27 +0000
commit9c1613e2c1a3ae3b9dccd44e66ef1ccfa887546a (patch)
treee288fd131e7e793d404768b4850a6271379aae37
parentdc508935731a719a6bb71bbb36f3a1a36dbcc967 (diff)
downloadgwtquery-9c1613e2c1a3ae3b9dccd44e66ef1ccfa887546a.tar.gz
gwtquery-9c1613e2c1a3ae3b9dccd44e66ef1ccfa887546a.zip
typo
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java
index da318b55..a2aaf788 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java
@@ -164,7 +164,7 @@ public class DocumentStyleImpl {
if (val == null || val.trim().length() == 0) {
removeStyleProperty(e, prop);
} else {
- if (val.matches("-?[\\d\\.]+") && !cssNumber.test(val)) {
+ if (val.matches("-?[\\d\\.]+") && !cssNumber.test(prop)) {
val += "px";
}
e.getStyle().setProperty(prop, val);