function () {
    // AutoLocation has it at _location, HashLocation at .location.
    // Being nice and not changing 
    var href = (this._location || this.location).href,
        hashIndex = href.indexOf('#');

    if (hashIndex === -1) {
      return '';
    } else {
      return href.substr(hashIndex);
    }
  }
function () {
    // AutoLocation has it at _location, HashLocation at .location.
    // Being nice and not changing 
    var href = (this._location || this.location).href,
        hashIndex = href.indexOf('#');

    if (hashIndex === -1) {
      return '';
    } else {
      return href.substr(hashIndex);
    }
  }
function ( ) { // AutoLocation has it at _location, HashLocation at .location. // Being nice and not changing  var href = ( this . _location || this . location ) . href , hashIndex = href . indexOf ( '#' ) ; if ( hashIndex === - 1 ) { return '' ; } else { return href . substr ( hashIndex ) ; } }
Returns the current `location.hash` by parsing location.href since browsers
inconsistently URL-decode `location.hash`.

https://bugzilla.mozilla.org/show_bug.cgi?id=483304

@private
@method getHash
Returns the current location . hash by parsing location . href since browsers inconsistently URL - decode location . hash .