Skip to content

Commit

Permalink
Strip off filename and query string for JSONP Remote test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig authored and wycats committed Jun 20, 2010
1 parent f502d11 commit 31cfe62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ test("jQuery.ajax() - JSONP, Remote", function() {
var count = 0;
function plus(){ if ( ++count == 4 ) start(); }

var base = window.location.href.replace(/\?.*$/, "");
var base = window.location.href.replace(/[^\/]*$/, "");

stop();

Expand Down

0 comments on commit 31cfe62

Please sign in to comment.