Skip to content

Commit 79f9c8b

Browse files
committed
[build] 0.6.2
1 parent 4b28825 commit 79f9c8b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

dist/vue-router.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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 = /^(component|subRoutes|name)$/;
1593+
var internalKeysRE = /^(component|subRoutes)$/;
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

Comments
 (0)