]> source.dussan.org Git - gwtquery.git/commitdiff
Fix a erroneous hardcoded key name in getFunctionBase
authorManolo Carrasco <manolo@apache.org>
Fri, 23 Dec 2011 10:13:50 +0000 (10:13 +0000)
committerManolo Carrasco <manolo@apache.org>
Fri, 23 Dec 2011 10:13:50 +0000 (10:13 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java

index a209a5a3b0fc9ae00299f1e78629acb2cfc63240..afd04eac9e1c024e871681edb4a535fe37f8c300 100644 (file)
@@ -89,7 +89,7 @@ public abstract class JsonBuilderBase<J extends JsonBuilderBase<?>> implements J
   }
   
   protected Function getFunctionBase(String n) {
-    final Object o = p.get("success");
+    final Object o = p.get(n);
     if (o != null) {
       if (o instanceof Function) {
         return (Function)o;