Skip to content

Commit 6228c09

Browse files
committed
[build] 0.7.9
1 parent ad575fc commit 6228c09

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

dist/vue-router.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v0.7.8
2+
* vue-router v0.7.9
33
* (c) 2016 Evan You
44
* Released under the MIT License.
55
*/
@@ -182,7 +182,7 @@
182182
},
183183

184184
generate: function generate(params) {
185-
return params[this.name];
185+
return params[this.name] || ":" + this.name;
186186
}
187187
};
188188

@@ -199,7 +199,7 @@
199199
},
200200

201201
generate: function generate(params) {
202-
return params[this.name];
202+
return params[this.name] || ":" + this.name;
203203
}
204204
};
205205

@@ -1933,10 +1933,6 @@
19331933
if (this.el.tagName !== 'A') {
19341934
return;
19351935
}
1936-
if (this.target && this.target.name) {
1937-
this.el.href = '#' + this.target.name;
1938-
return;
1939-
}
19401936
var path = this.path;
19411937
var router = this.router;
19421938
var isAbsolute = path.charAt(0) === '/';
@@ -2530,7 +2526,7 @@
25302526
if (path && typeof path === 'object') {
25312527
if (path.name) {
25322528
var extend = Vue.util.extend;
2533-
var currentParams = this._currentTransition.to.params;
2529+
var currentParams = this._currentTransition && this._currentTransition.to.params;
25342530
var targetParams = path.params || {};
25352531
var params = currentParams ? extend(extend({}, currentParams), targetParams) : targetParams;
25362532
if (path.query) {

0 commit comments

Comments
 (0)