Author: [email protected]
Date: Thu Apr 16 15:13:33 2009
New Revision: 5253
Added:
trunk/user/src/com/google/gwt/jsonp/
- copied from r5225, /trunk/user/src/com/google/gwt/jsonp/
trunk/user/src/com/google/gwt/jsonp/Jsonp.gwt.xml
- copied unchanged from r5225,
/trunk/user/src/com/google/gwt/jsonp/Jsonp.gwt.xml
trunk/user/src/com/google/gwt/jsonp/client/
- copied from r5225, /trunk/user/src/com/google/gwt/jsonp/client/
trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
- copied, changed from r5225,
/trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
trunk/user/src/com/google/gwt/jsonp/client/JsonpRequestBuilder.java
- copied unchanged from r5225,
/trunk/user/src/com/google/gwt/jsonp/client/JsonpRequestBuilder.java
trunk/user/src/com/google/gwt/jsonp/client/TimeoutException.java
- copied unchanged from r5225,
/trunk/user/src/com/google/gwt/jsonp/client/TimeoutException.java
trunk/user/test/com/google/gwt/jsonp/
- copied from r5225, /trunk/user/test/com/google/gwt/jsonp/
trunk/user/test/com/google/gwt/jsonp/JsonpRequestSuite.java
- copied unchanged from r5225,
/trunk/user/test/com/google/gwt/jsonp/JsonpRequestSuite.java
trunk/user/test/com/google/gwt/jsonp/JsonpTest.gwt.xml
- copied unchanged from r5225,
/trunk/user/test/com/google/gwt/jsonp/JsonpTest.gwt.xml
trunk/user/test/com/google/gwt/jsonp/client/
- copied from r5225, /trunk/user/test/com/google/gwt/jsonp/client/
trunk/user/test/com/google/gwt/jsonp/client/JsonpRequestTest.java
- copied unchanged from r5225,
/trunk/user/test/com/google/gwt/jsonp/client/JsonpRequestTest.java
trunk/user/test/com/google/gwt/jsonp/server/
- copied from r5225, /trunk/user/test/com/google/gwt/jsonp/server/
trunk/user/test/com/google/gwt/jsonp/server/EchoServlet.java
- copied unchanged from r5225,
/trunk/user/test/com/google/gwt/jsonp/server/EchoServlet.java
Log:
One more try for JSONP support.
Patch by: dwolf, jat
Review by: rjrjr, jgw (verbal)
Copied: trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java (from
r5225, /trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java)
==============================================================================
--- /trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
(original)
+++ trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java Thu Apr
16
15:13:33 2009
@@ -25,7 +25,7 @@
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
- * A JSONP request that is waiting for a response. The request can be
cancelled.
+ * A JSONP request that is waiting for a response. The request can be
canceled.
*
* @param <T> the type of the response object.
*/
@@ -37,7 +37,7 @@
private static int callbackCounter = 0;
/**
- * __jsonp__ is a global object that contains callbacks of pending
requests.
+ * __gwt_jsonp__ is a global object that contains callbacks of pending
requests.
*/
private static final String CALLBACKS_NAME = "__gwt_jsonp__";
private static final JavaScriptObject CALLBACKS =
createCallbacksObject(CALLBACKS_NAME);
@@ -231,6 +231,6 @@
}
private native void unregisterCallbacks(JavaScriptObject callbacks) /*-{
- delete
$wnd[[email protected]::callbackId];
+ delete
callbacks[[email protected]::callbackId];
}-*/;
}
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---