Przeglądaj źródła

Found one more place with exact logic and replaced `filter` to `some`

Parviz/Ibragim Bekliev 5 lat temu
rodzic
commit
d2c3505f35
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/component.js

+ 1 - 1
src/component.js

@@ -282,7 +282,7 @@ export default class Component {
                 case 'if':
                     // If this element also has x-for on it, don't process x-if.
                     // We will let the "x-for" directive handle the "if"ing.
-                    if (attrs.filter(i => i.type === 'for').length > 0) return
+                    if (attrs.some(i => i.type === 'for')) return
 
                     var output = this.evaluateReturnExpression(el, expression, extraVars)