Skip to content

Commit

Permalink
remove jsonpCallback from queryOptions
Browse files Browse the repository at this point in the history
"It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling." - http://api.jquery.com/jQuery.ajax/
  • Loading branch information
adjohnson916 committed Sep 19, 2012
1 parent ec79681 commit ceea58c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/backbone.paginator.js
Expand Up @@ -100,7 +100,6 @@ Backbone.Paginator = (function ( Backbone, _, $ ) {
});

queryOptions = _.extend(queryOptions, {
jsonpCallback: 'callback',
data: decodeURIComponent($.param(queryAttributes)),
processData: false,
url: _.result(queryOptions, 'url')
Expand Down Expand Up @@ -753,7 +752,6 @@ Backbone.Paginator = (function ( Backbone, _, $ ) {
}

queryOptions = _.extend(queryOptions, {
jsonpCallback: 'callback',
processData: false,
url: _.result(queryOptions, 'url')
}, options);
Expand Down

0 comments on commit ceea58c

Please sign in to comment.