Skip to content

Commit

Permalink
Cleanup for release
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Jul 2, 2023
1 parent e6dd2c8 commit 5dd6acc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/alpinejs/src/directives/x-bind.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
5 changes: 0 additions & 5 deletions packages/alpinejs/src/directives/x-for.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion packages/alpinejs/src/evaluator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 2 additions & 2 deletions packages/alpinejs/src/utils/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 5dd6acc

Please sign in to comment.