Selaa lähdekoodia

Fix "dependancies" typo (#1733)

Co-authored-by: Mona Lisa <404@no.lan>
Miosame 4 vuotta sitten
vanhempi
commit
4c2b73dd65

+ 1 - 1
packages/alpinejs/src/magics/$watch.js

@@ -16,7 +16,7 @@ magic('watch', el => (key, callback) => {
 
         if (! firstTime) {
             // We have to queue this watcher as a microtask so that
-            // the watcher doesn't pick up its own dependancies.
+            // the watcher doesn't pick up its own dependencies.
             queueMicrotask(() => {
                 callback(value, oldValue)
 

+ 1 - 1
tests/cypress/integration/magics/$watch.spec.js

@@ -129,7 +129,7 @@ test('$watch nested arrays',
     }
 )
 
-test('$watch ignores other dependancies',
+test('$watch ignores other dependencies',
     html`
         <div
             x-data="{ a: 0, b: 0, c: 0 }"