This file contains 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
(function (w, d) { | |
//https://gist.github.com/1847816 | |
var a, k = 'protocol hostname host pathname port search hash href'.split(' '); | |
w.UFCOE = w.UFCOE || {}; | |
/** | |
* Parse a URI, returning an object similar to Location | |
* | |
* Usage: UFCOE.parseUri("hello?search#hash").search -> "?search" | |
* | |
* @param String url |