From: Manuel Carrasco MoƱino Date: Wed, 10 Apr 2013 06:45:45 +0000 (+0200) Subject: Fix casting exception X-Git-Tag: release-1.4.0~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fed1ede816404dbd3e739279ec65c60877036ad4;p=gwtquery.git Fix casting exception --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java index 6f094d5e..8bbd2def 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java @@ -13,7 +13,6 @@ import com.google.gwt.query.client.Properties; import com.google.gwt.query.client.builders.JsonBuilder; import com.google.gwt.query.client.js.JsUtils; import com.google.gwt.query.client.plugins.Plugin; -import com.google.gwt.query.client.plugins.deferred.Deferred; import com.google.gwt.query.client.plugins.deferred.PromiseReqBuilder; import com.google.gwt.query.client.plugins.deferred.PromiseReqBuilderJSONP; import com.google.gwt.user.client.ui.FormPanel; @@ -106,7 +105,6 @@ public class Ajax extends GQuery { * @param settings a Properties object with the configuration of the Ajax request. */ public static Promise ajax(Settings settings) { - final Deferred dfd = $().as(Deferred.Deferred); final Function onSuccess = settings.getSuccess(); if (onSuccess != null) { @@ -150,7 +148,7 @@ public class Ajax extends GQuery { }, new Function() { public Object f(Object...args) { Throwable exception = (Throwable)args[0]; - Response request = (Response)args[1]; + Request request = (Request)args[1]; return new Object[]{null, exception.getMessage(), request, null, exception}; } })