Sha256: e59e1bb21b43dfb1afa728f8f5d7cad5419056519e43f8ba30c86f27dd44acdd

Contents?: true

Size: 764 Bytes

Versions: 8

Compression:

Stored size: 764 Bytes

Contents

//>>built
define("dojox/rpc/JsonRPC",["dojo","dojox","dojox/rpc/Service"],function(_1,_2){
function _3(_4){
return {serialize:function(_5,_6,_7,_8){
var d={id:this._requestId++,method:_6.name,params:_7};
if(_4){
d.jsonrpc=_4;
}
return {data:_1.toJson(d),handleAs:"json",contentType:"application/json",transport:"POST"};
},deserialize:function(_9){
if("Error"==_9.name){
_9=_1.fromJson(_9.responseText);
}
if(_9.error){
var e=new Error(_9.error.message||_9.error);
e._rpcErrorObject=_9.error;
return e;
}
return _9.result;
}};
};
_2.rpc.envelopeRegistry.register("JSON-RPC-1.0",function(_a){
return _a=="JSON-RPC-1.0";
},_1.mixin({namedParams:false},_3()));
_2.rpc.envelopeRegistry.register("JSON-RPC-2.0",function(_b){
return _b=="JSON-RPC-2.0";
},_3("2.0"));
});

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/rpc/JsonRPC.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/rpc/JsonRPC.js
dojox-rails-0.11.0 vendor/assets/javascripts/rpc/JsonRPC.js
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/rpc/JsonRPC.js
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/rpc/JsonRPC.js
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/rpc/JsonRPC.js
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/rpc/JsonRPC.js
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/rpc/JsonRPC.js