Skip to content

Commit

Permalink
Make GET method (in fact JSONP) default.
Browse files Browse the repository at this point in the history
  • Loading branch information
veged committed Nov 29, 2008
1 parent 65fe888 commit f200184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.jsonrpc.js
@@ -1,7 +1,7 @@
(function($){

$.jsonRpc = $.jsonRpc || function(options) {
options.type = options.type || 'POST';
options.type = options.type || 'GET';
var ajaxOptions = {
contentType: 'application/json',
dataType: options.type == 'GET' ? 'jsonp' : 'json',
Expand All @@ -27,6 +27,6 @@ $.jsonRpc = $.jsonRpc || function(options) {
send();
}
return $;
}
};

})(jQuery);

0 comments on commit f200184

Please sign in to comment.