Skip to content

Commit

Permalink
rename "index" to "indexof"
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 13, 2013
1 parent 0467987 commit 4354f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

var debug = require('debug')('jsonp');
var index = require('indexof');
var indexof = require('indexof');

/**
* Module exports.
Expand Down Expand Up @@ -72,7 +72,7 @@ function jsonp(url, opts, fn){
};

// add qs component
url += (~index(url, '?') ? '&' : '?') + param + '=' + enc('__jp' + id + '');
url += (~indexof(url, '?') ? '&' : '?') + param + '=' + enc('__jp' + id + '');
url = url.replace('?&', '?');

debug('jsonp req "%s"', url);
Expand Down

0 comments on commit 4354f42

Please sign in to comment.