aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2014-01-22 07:11:45 +0000
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2014-01-22 07:11:45 +0000
commitaffdffa9897b1200257404f36c328c677255bfb5 (patch)
tree7f87efe8283081ec37c764eab37663d0693c7f16 /gwtquery-core
parent842f365194d3861c71aa3494a1ba6b521391b0e7 (diff)
parent8d34610fa2bfbd02ab623f73f5f30b2189bb04be (diff)
downloadgwtquery-affdffa9897b1200257404f36c328c677255bfb5.tar.gz
gwtquery-affdffa9897b1200257404f36c328c677255bfb5.zip
Merge branch 'mcm_jsonbuilder_jvm' of github.com:gwtquery/gwtquery into mcm_jsonbuilder_jvm
Conflicts: gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
Diffstat (limited to 'gwtquery-core')
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
index e40feca0..4a1b9c3c 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
@@ -105,6 +105,10 @@ public class JsonFactoryJre implements JsonFactory {
ret = jsonFactory.create(clz, (JSONObject)ret);
}
}
+ // Javascript always returns a double
+ if (ret instanceof Number) {
+ ret = Double.valueOf(((Number) ret).doubleValue());
+ }
}
} catch (JSONException e) {
}