Forráskód Böngészése

remove no longer necessary code

Evan You 9 éve
szülő
commit
7f25f730c1
1 módosított fájl, 0 hozzáadás és 6 törlés
  1. 0 6
      src/platforms/web/runtime/components/transition.js

+ 0 - 6
src/platforms/web/runtime/components/transition.js

@@ -126,12 +126,6 @@ export default {
     const oldRawChild = this._vnode
     const oldChild: any = getRealChild(oldRawChild)
 
-    // mark v-show
-    // so that the transition module can hand over the control to the directive
-    if (child.data.directives && child.data.directives.some(d => d.name === 'show')) {
-      child.data.show = true
-    }
-
     if (oldChild && oldChild.data && oldChild.key !== key) {
       // replace old child transition data with fresh one
       // important for dynamic transitions!