소스 검색

Update README.md

Sven Fehler 1 년 전
부모
커밋
ab6afedaf8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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