From 44d3e6d4ace3940bc98b51e52338cde7e293ae09 Mon Sep 17 00:00:00 2001 From: ZhangJan Date: Sun, 5 Jun 2016 01:19:54 +0800 Subject: [PATCH] remove a needless if. Since always remove the old class. --- src/directives/internal/transition.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/directives/internal/transition.js b/src/directives/internal/transition.js index 6815a2bd87f..0069567fcf3 100644 --- a/src/directives/internal/transition.js +++ b/src/directives/internal/transition.js @@ -13,9 +13,7 @@ export default { id = id || 'v' oldId = oldId || 'v' el.__v_trans = new Transition(el, id, hooks, this.vm) - if (oldId) { - removeClass(el, oldId + '-transition') - } + removeClass(el, oldId + '-transition') addClass(el, id + '-transition') } }