docs: function setBeforeRouteChangeHandler(handler) {
              if (null == handler) {
                  return _beforeRouteChange;
              }
              else {
                  var oldHandler = _beforeRouteChange;
                  _beforeRouteChange = handler;
                  return oldHandler;
              }
          }