Skip to content
Permalink
Browse files
Strip off filename and query string for JSONP Remote test.
  • Loading branch information
jeresig committed Mar 23, 2010
1 parent 2301e2a commit 0fbac16
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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();

0 comments on commit 0fbac16

Please sign in to comment.