Skip to content

Commit

Permalink
Revert "normalize steal.root if initialized with a relative path (fix…
Browse files Browse the repository at this point in the history
…es IE)"

This reverts commit c53e480.
  • Loading branch information
polgfred committed Jan 18, 2012
1 parent c53e480 commit 514b030
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions steal.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,11 +932,6 @@
rootUrl : function(src){
if (src !== undefined) {
steal.root = File(src);
if (!steal.root.protocol()){
// IE won't normalize a relative path in a script tag, so if we've been given a relative root url,
// we forcibly join from the page's base url
steal.root = File(steal.root.joinFrom(steal.pageUrl().dir(), true));
}

// set cur with the location
var cleaned = steal.pageUrl(),
Expand Down

0 comments on commit 514b030

Please sign in to comment.