Skip to content

Commit

Permalink
URI base tag look up optimization
Browse files Browse the repository at this point in the history
- base tag doesn't need to be extended
- uses compatible and more lightweight document.getElements
- Indirectly fixes ticket #72
  • Loading branch information
sebmarkbage committed Jun 21, 2009
1 parent a2807fb commit 961fa6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Native/URI.js
Expand Up @@ -140,7 +140,7 @@ URI.regs = {
directoryDot: /\.\/|\.$/
};

URI.base = new URI($$('base[href]').getLast(), { base: document.location });
URI.base = new URI(document.getElements('base[href]', true).getLast(), { base: document.location });

String.implement({

Expand Down

0 comments on commit 961fa6d

Please sign in to comment.