Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F947445
JsonpService.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
JsonpService.js
View Options
/*
Copyright (c) 2004-2009, 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
*/
if
(
!
dojo
.
_hasResource
[
"dojo.rpc.JsonpService"
]){
dojo
.
_hasResource
[
"dojo.rpc.JsonpService"
]
=
true
;
dojo
.
provide
(
"dojo.rpc.JsonpService"
);
dojo
.
require
(
"dojo.rpc.RpcService"
);
dojo
.
require
(
"dojo.io.script"
);
dojo
.
declare
(
"dojo.rpc.JsonpService"
,
dojo
.
rpc
.
RpcService
,{
constructor
:
function
(
_1
,
_2
){
if
(
this
.
required
){
if
(
_2
){
dojo
.
mixin
(
this
.
required
,
_2
);
}
dojo
.
forEach
(
this
.
required
,
function
(
_3
){
if
(
_3
==
""
||
_3
==
undefined
){
throw
new
Error
(
"Required Service Argument not found: "
+
_3
);
}
});
}
},
strictArgChecks
:
false
,
bind
:
function
(
_4
,
_5
,
_6
,
_7
){
var
_8
=
dojo
.
io
.
script
.
get
({
url
:
_7
||
this
.
serviceUrl
,
callbackParamName
:
this
.
callbackParamName
||
"callback"
,
content
:
this
.
createRequest
(
_5
),
timeout
:
this
.
timeout
,
handleAs
:
"json"
,
preventCache
:
true
});
_8
.
addCallbacks
(
this
.
resultCallback
(
_6
),
this
.
errorCallback
(
_6
));
},
createRequest
:
function
(
_9
){
var
_a
=
(
dojo
.
isArrayLike
(
_9
)
&&
_9
.
length
==
1
)
?
_9
[
0
]
:
{};
dojo
.
mixin
(
_a
,
this
.
required
);
return
_a
;
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 11:53 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24134
Default Alt Text
JsonpService.js (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment