ソースを参照

Remove braces

fergaldoyle 11 年 前
コミット
041472237c
1 ファイル変更1 行追加3 行削除
  1. 1 3
      src/directives/repeat.js

+ 1 - 3
src/directives/repeat.js

@@ -683,9 +683,7 @@ module.exports = {
 
 function findPrevVm (vm, anchor, id) {
   var el = vm.$el.previousSibling
-  if (!el) {
-      return
-  }
+  if (!el) return
   while (
     (!el.__vue__ || el.__vue__.$options._repeatId !== id) &&
     el !== anchor