11/*!
2- * vue-router v0.6.1
2+ * vue-router v0.6.2
33 * (c) 2015 Evan You
44 * Released under the MIT License.
55 */
@@ -1590,7 +1590,7 @@ return /******/ (function(modules) { // webpackBootstrap
15901590 Object . defineProperty ( exports , "__esModule" , {
15911591 value : true
15921592 } ) ;
1593- var internalKeysRE = / ^ ( c o m p o n e n t | s u b R o u t e s | n a m e ) $ / ;
1593+ var internalKeysRE = / ^ ( c o m p o n e n t | s u b R o u t e s ) $ / ;
15941594
15951595 /**
15961596 * Route Context Object
@@ -2536,11 +2536,11 @@ return /******/ (function(modules) { // webpackBootstrap
25362536 // don't redirect on right click
25372537 if ( e . button !== 0 ) return ;
25382538
2539- if ( _this . el . tagName === 'A' ) {
2539+ if ( _this . el . tagName === 'A' || e . target === _this . el ) {
25402540 // v-link on <a v-link="'path'">
25412541 e . preventDefault ( ) ;
25422542 if ( _this . destination != null ) {
2543- router . go ( _this . destination ) ;
2543+ router . go ( _this . destination , _this . replace === true ) ;
25442544 }
25452545 } else {
25462546 // v-link delegate on <div v-link>
@@ -2562,6 +2562,7 @@ return /******/ (function(modules) { // webpackBootstrap
25622562
25632563 update : function update ( path ) {
25642564 var router = this . vm . $route . router ;
2565+ this . replace = typeof path === 'object' ? path . replace : false ;
25652566 path = router . _normalizePath ( path ) ;
25662567 this . destination = path ;
25672568 this . activeRE = path ? new RegExp ( '^' + path . replace ( regexEscapeRE , '\\$&' ) + '\\b' ) : null ;
0 commit comments