ソースを参照

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

Evan You 10 年 前
コミット
0fc2e960ab
1 ファイル変更3 行追加0 行削除
  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()
+    }
   }
 }