a:6:{s:9:"#provides";s:28:"dojox.io.xhrWindowNamePlugin";s:9:"#resource";s:25:"io/xhrWindowNamePlugin.js";s:9:"#requires";a:4:{i:0;a:2:{i:0;s:6:"common";i:1;s:19:"dojox.io.xhrPlugins";}i:1;a:2:{i:0;s:6:"common";i:1;s:19:"dojox.io.windowName";}i:2;a:2:{i:0;s:6:"common";i:1;s:18:"dojox.io.httpParse";}i:3;a:2:{i:0;s:6:"common";i:1;s:23:"dojox.secure.capability";}}s:28:"dojox.io.xhrWindowNamePlugin";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:3:"url";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:60:"Url prefix of the site which can handle windowName requests.";}s:11:"httpAdapter";a:3:{s:8:"optional";b:1;s:4:"type";s:8:"Function";s:7:"summary";s:153:"This allows for adapting HTTP requests that could not otherwise be sent with window.name, so you can use a convention for headers and PUT/DELETE methods.";}s:7:"trusted";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Boolean";}}s:6:"source";s:1089:" dojox.io.xhrPlugins.register( "windowName", function(method,args){ return args.sync !== true && (method == "GET" || method == "POST" || httpAdapter) && (args.url.substring(0,url.length) == url); }, function(method,args,hasBody){ var send = dojox.io.windowName.send; var dfd = (httpAdapter ? httpAdapter(send, true) : send)(method, args, hasBody); // use the windowName transport dfd.addCallback(function(result){ var ioArgs = dfd.ioArgs; ioArgs.xhr = { getResponseHeader: function(name){ // convert the hash to an object to act like response headers return dojo.queryToObject(ioArgs.hash.match(/[^#]*$/)[0])[name]; } } // use the XHR content handlers for handling if(ioArgs.handleAs == 'json'){ // use a secure json verifier, using object capability validator for now if(!trusted){ dojox.secure.capability.validate(result,["Date"],{}); } return dojo.fromJson(result); } return dojo._contentHandlers[ioArgs.handleAs || "text"]({responseText:result}); }); return dfd; } );";s:7:"summary";s:129:"Adds the windowName transport as an XHR plugin for the given site. See dojox.io.windowName for more information on the transport.";}s:8:"dojox.io";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}