code: function () {
          var _window = this._window;
          var documentMode = _window.document.documentMode;
  
          return ('onhashchange' in _window && (documentMode === undefined || documentMode > 7 ));
        }
docs: @private
  
  IE8 running in IE7 compatibility mode gives false positive, so we must also
  check documentMode.
  
  @method _getSupportsHashChange