Skip to content

Commit

Permalink
* Use the current path if no URL is provided for XHR in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Aug 30, 2010
1 parent b8b9fff commit 86a76a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Request/Request.js
Expand Up @@ -151,6 +151,8 @@ var Request = new Class({
data = (data) ? noCache + '&' + data : noCache;
}

if (!url) url = document.location.pathname;

var trimPosition = url.lastIndexOf('/');
if (trimPosition > -1 && (trimPosition = url.indexOf('#')) > -1) url = url.substr(0, trimPosition);

Expand Down

0 comments on commit 86a76a5

Please sign in to comment.