src/util/history/history.js
function(_href){
            // locked from history back
            if (!!_locked){
                _locked = !1;
                return;
            }
            var _event = {
                oldValue:_location,
                newValue:_getLocation()
            };
            // check ignore beforeurlchange event fire
            if (!!location.ignored){
                location.ignored = !1;
            }else{
                _v._$dispatchEvent(
                    location,'beforeurlchange',_event
                );
                if (_event.stopped){
                    if (!!_location){
                        _locked = !0;
                        _setLocation(_location.href,!0);
                    }
                    return;
                };
            }
            // fire urlchange
            _url = _ctxt.location.href;
            _location = _event.newValue;
            _v._$dispatchEvent(
                location,'urlchange',_location
            );
            _h.__pushHistory(_location.href);
        }
function(_href){
            // locked from history back
            if (!!_locked){
                _locked = !1;
                return;
            }
            var _event = {
                oldValue:_location,
                newValue:_getLocation()
            };
            // check ignore beforeurlchange event fire
            if (!!location.ignored){
                location.ignored = !1;
            }else{
                _v._$dispatchEvent(
                    location,'beforeurlchange',_event
                );
                if (_event.stopped){
                    if (!!_location){
                        _locked = !0;
                        _setLocation(_location.href,!0);
                    }
                    return;
                };
            }
            // fire urlchange
            _url = _ctxt.location.href;
            _location = _event.newValue;
            _v._$dispatchEvent(
                location,'urlchange',_location
            );
            _h.__pushHistory(_location.href);
        }
function ( _href ) { // locked from history back if ( ! ! _locked ) { _locked = ! 1 ; return ; } var _event = { oldValue : _location , newValue : _getLocation ( ) } ; // check ignore beforeurlchange event fire if ( ! ! location . ignored ) { location . ignored = ! 1 ; } else { _v . _$dispatchEvent ( location , 'beforeurlchange' , _event ) ; if ( _event . stopped ) { if ( ! ! _location ) { _locked = ! 0 ; _setLocation ( _location . href , ! 0 ) ; } return ; } ; } // fire urlchange _url = _ctxt . location . href ; _location = _event . newValue ; _v . _$dispatchEvent ( location , 'urlchange' , _location ) ; _h . __pushHistory ( _location . href ) ; }
parse location change
parse location change