Skip to content

Commit

Permalink
unique callback function names
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Graul committed Jun 7, 2012
1 parent 6238478 commit c70e11b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/importers/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@
parts = params[params.length - 1].split("=");
}
if (!callback) {
callback = params.length ? (parts[ 1 ] ? parts[ 1 ] : parts[ 0 ]) : "jsonp";
var fallback = _.uniqueId('callback');
callback = params.length ? (parts[ 1 ] ? parts[ 1 ] : fallback) : fallback;
}

if (!paramStr && !isScript) {
Expand Down

0 comments on commit c70e11b

Please sign in to comment.