Skip to content

Commit

Permalink
Rebuild assets
Browse files Browse the repository at this point in the history
  • Loading branch information
aleho committed May 8, 2024
1 parent 11f4a96 commit 78034bb
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/LiveComponent/assets/dist/live_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1822,17 +1822,8 @@ class ExternalMutationTracker {
}
handleClassAttributeMutation(mutation, elementChanges) {
const element = mutation.target;
const previousValue = mutation.oldValue;
const previousValues = previousValue ? previousValue.split(' ') : [];
previousValues.forEach((value, index) => {
const trimmedValue = value.trim();
if (trimmedValue !== '') {
previousValues[index] = trimmedValue;
}
else {
previousValues.splice(index, 1);
}
});
const previousValue = mutation.oldValue || '';
const previousValues = previousValue.match(/(\S+)/gu) || [];
const newValues = [].slice.call(element.classList);
const addedValues = newValues.filter((value) => !previousValues.includes(value));
const removedValues = previousValues.filter((value) => !newValues.includes(value));
Expand Down

0 comments on commit 78034bb

Please sign in to comment.