Browse Source

fix else fragment not destoryed on teardown (fix #2206)

Evan You 10 years ago
parent
commit
0fc2e960ab
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/directives/public/if.js

+ 3 - 0
src/directives/public/if.js

@@ -69,5 +69,8 @@ export default {
     if (this.frag) {
       this.frag.destroy()
     }
+    if (this.elseFrag) {
+      this.elseFrag.destroy()
+    }
   }
 }