Skip to content

Instantly share code, notes, and snippets.

@slackorama
Created December 16, 2008 19:29
Show Gist options
  • Save slackorama/36740 to your computer and use it in GitHub Desktop.
Save slackorama/36740 to your computer and use it in GitHub Desktop.
(function() {
dojo.xhrGet = function(/*dojo.__XhrArgs*/ args){
// 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 dojo.xhr("GET", cloneargs);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment