Created
December 16, 2008 19:45
-
-
Save slackorama/36760 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var oldXhr = dojo.xhr; | |
dojo.xhr = function(/*String*/ method, /*dojo.__Scrags*/ args, | |
/*Boolean?*/ hasBody){ | |
// first clone so we don't screw up original caller | |
var cloneargs = dojo.mixin( {}, args ); | |
if (cloneargs.url) { | |
cloneargs.url = 'myfunkyurl?a=' + cloneargs.url; | |
} | |
return oldXhr.apply( dojo, [ method, cloneargs, hasBody]); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment