Parcourir la source

Update README.md

Sven Fehler il y a 1 an
Parent
commit
ab6afedaf8
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -69,7 +69,7 @@ If the selector already exists, the listener will be called immediately.
   
 If `all` is set to `true`, querySelectorAll() will be used instead and the listener will return a NodeList of matching elements.  
 This will also include elements that were already found in a previous listener call.  
-If set to `false` (default), querySelector() will be used and only the first element will be returned.  
+If set to `false` (default), querySelector() will be used and only the first matching element will be returned.  
   
 If `continuous` is set to `true`, the listener will not be deregistered after it was called once (defaults to false).  
   
@@ -109,7 +109,7 @@ onSelector<HTMLInputElement>("input[value=\"5\"]", {
 ### initOnSelector()
 Usage:  
 ```ts
-initOnSelector(options: {
+initOnSelector(options?: {
   attributes?: boolean,
   characterData?: boolean,
 }): void