summaryrefslogtreecommitdiff
path: root/lib/dojo/rpc/JsonpService.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dojo/rpc/JsonpService.js')
-rw-r--r--lib/dojo/rpc/JsonpService.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/dojo/rpc/JsonpService.js b/lib/dojo/rpc/JsonpService.js
index 31e95077b..ecdadc7fc 100644
--- a/lib/dojo/rpc/JsonpService.js
+++ b/lib/dojo/rpc/JsonpService.js
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
+ Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
@@ -11,9 +11,10 @@ dojo.provide("dojo.rpc.JsonpService");
dojo.require("dojo.rpc.RpcService");
dojo.require("dojo.io.script");
+
dojo.declare("dojo.rpc.JsonpService", dojo.rpc.RpcService, {
// summary:
- // Generic JSONP service. Minimally extends RpcService to allow
+ // Generic JSONP service. Minimally extends RpcService to allow
// easy definition of nearly any JSONP style service. Example
// SMD files exist in dojox.data
@@ -25,10 +26,10 @@ dojo.declare("dojo.rpc.JsonpService", dojo.rpc.RpcService, {
dojo.forEach(this.required, function(req){
if(req=="" || req==undefined){
- throw new Error("Required Service Argument not found: "+req);
+ throw new Error("Required Service Argument not found: "+req);
}
});
- }
+ }
},
strictArgChecks: false,
@@ -50,7 +51,7 @@ dojo.declare("dojo.rpc.JsonpService", dojo.rpc.RpcService, {
callbackParamName: this.callbackParamName||"callback",
content: this.createRequest(parameters),
timeout: this.timeout,
- handleAs: "json",
+ handleAs: "json",
preventCache: true
});
def.addCallbacks(this.resultCallback(deferredRequestHandler), this.errorCallback(deferredRequestHandler));