File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
- * vue-router v0.7.12
2
+ * vue-router v0.7.13
3
3
* (c) 2016 Evan You
4
4
* Released under the MIT License.
5
5
*/
1875
1875
function Link ( Vue ) {
1876
1876
var _Vue$util = Vue . util ;
1877
1877
var _bind = _Vue$util . bind ;
1878
- var getAttr = _Vue$util . getAttr ;
1879
1878
var isObject = _Vue$util . isObject ;
1880
1879
var addClass = _Vue$util . addClass ;
1881
1880
var removeClass = _Vue$util . removeClass ;
1928
1927
// update things when the route changes
1929
1928
this . unwatch = vm . $watch ( '$route' , _bind ( this . onRouteUpdate , this ) ) ;
1930
1929
// check v-link-active ids
1931
- var activeIds = getAttr ( this . el , LINK_UPDATE ) ;
1930
+ var activeIds = this . el . getAttribute ( LINK_UPDATE ) ;
1932
1931
if ( activeIds ) {
1932
+ this . el . removeAttribute ( LINK_UPDATE ) ;
1933
1933
this . activeIds = activeIds . split ( ',' ) ;
1934
1934
}
1935
1935
// no need to handle click if link expects to be opened
You can’t perform that action at this time.
0 commit comments