Caleb Porzio 2 лет назад
Родитель
Сommit
5dd6accaaf

+ 1 - 1
packages/alpinejs/src/directives/x-bind.js

@@ -1,5 +1,5 @@
 import { directive, into, mapAttributes, prefix, startingWith } from '../directives'
-import { dontAutoEvaluateFunctions, evaluateLater } from '../evaluator'
+import { evaluateLater } from '../evaluator'
 import { mutateDom } from '../mutation'
 import bind from '../utils/bind'
 import { applyBindingsObject, injectBindingProviders } from '../binds'

+ 0 - 5
packages/alpinejs/src/directives/x-for.js

@@ -141,11 +141,6 @@ function loop(el, iteratorNames, evaluateItems, evaluateKey) {
                 lookup[key]._x_effects.forEach(dequeueJob)
             }
 
-            // An internal hook to unregister an item synchronously...
-            if (!! lookup[key]._x_forCleanup) {
-                lookup[key]._x_forCleanup()
-            }
-
             lookup[key].remove()
 
             lookup[key] = null

+ 0 - 1
packages/alpinejs/src/evaluator.js

@@ -45,7 +45,6 @@ export function normalEvaluator(el, expression) {
         ? generateEvaluatorFromFunction(dataStack, expression)
         : generateEvaluatorFromString(dataStack, expression, el)
 
-    return evaluator
     return tryCatch.bind(null, el, expression, evaluator)
 }
 

+ 2 - 2
packages/alpinejs/src/utils/bind.js

@@ -23,9 +23,9 @@ export default function bind(el, name, value, modifiers = []) {
         case 'class':
             bindClasses(el, value)
             break;
-        
+
         // 'selected' and 'checked' are special attributes that aren't necessarily
-        // synced with their corresponding properties when updated, so both the 
+        // synced with their corresponding properties when updated, so both the
         // attribute and property need to be updated when bound.
         case 'selected':
         case 'checked':