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
/** | |
* Parse hash bang parameters from a URL as key value object. | |
* For repeated parameters the last parameter is effective. | |
* If = syntax is not used the value is set to null. | |
* #!x&y=3 -> { x:null, y:3 } | |
* @param url URL to parse or null if window.location is used | |
* @return Object of key -> value mappings. | |
* @source https://gist.github.com/zaus/5201739 | |
*/ | |
function hashbang(url, i, hash) { |