|
@@ -40,13 +40,13 @@ export class SelectorObserver {
|
|
|
* @param baseElementSelector The selector of the element to observe
|
|
|
* @param options Fine-tune what triggers the MutationObserver's checking function - `subtree` and `childList` are set to true by default
|
|
|
*/
|
|
|
- constructor(baseElementSelector: string, options: SelectorObserverOptions)
|
|
|
+ constructor(baseElementSelector: string, options?: SelectorObserverOptions)
|
|
|
/**
|
|
|
* Creates a new SelectorObserver that will observe the children of the given base element for changes (only creation and deletion of elements by default)
|
|
|
* @param baseElement The element to observe
|
|
|
* @param options Fine-tune what triggers the MutationObserver's checking function - `subtree` and `childList` are set to true by default
|
|
|
*/
|
|
|
- constructor(baseElement: Element, options: SelectorObserverOptions)
|
|
|
+ constructor(baseElement: Element, options?: SelectorObserverOptions)
|
|
|
constructor(baseElement: Element | string, options: SelectorObserverOptions = {}) {
|
|
|
this.baseElement = baseElement;
|
|
|
|