Explorar o código

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

Parviz/Ibragim Bekliev %!s(int64=5) %!d(string=hai) anos
pai
achega
d2c3505f35
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)