Skip to content

Commit ccd8700

Browse files
dsonetposva
authored andcommitted
remove a needless if. (vuejs#3034)
Since always remove the old class.
1 parent 80ac5c6 commit ccd8700

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/directives/internal/transition.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ export default {
1313
id = id || 'v'
1414
oldId = oldId || 'v'
1515
el.__v_trans = new Transition(el, id, hooks, this.vm)
16-
if (oldId) {
17-
removeClass(el, oldId + '-transition')
18-
}
16+
removeClass(el, oldId + '-transition')
1917
addClass(el, id + '-transition')
2018
}
2119
}

0 commit comments

Comments
 (0)