Created
February 3, 2010 21:40
-
-
Save tolmasky/294056 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cwd: function() | |
| { | |
| var DOMBaseElement = document.getElementsByTagName("base")[0]; | |
| if (DOMBaseElement) | |
| return FILE.dirname(DOMBaseElement.getAttribute("href")); | |
| return FILE.dirname(window.location.pathname); | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment