qsa-observer
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "qsa-observer", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "handle elements lifecycle through CSS selectors", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
# qsa-observer | ||
Given an array of selectors, handles any matching element that was wither connected, or disconnected, from an observed element, or document. | ||
![bird watch](./qsa-observer-head.jpg) | ||
<sup>**Social Media Photo by [Kevin Maillefer](https://unsplash.com/@kmaillefer) on [Unsplash](https://unsplash.com/)**</sup> | ||
Given an array of selectors, handles any matching element that was either connected, or disconnected, from an observed element, or document. | ||
### Differently from MutationObserver | ||
@@ -42,3 +47,3 @@ | ||
// example: add another selector to observe and passes through the setup | ||
// example: add another selector to observe and pass through the handle | ||
const observeMore = selector => { | ||
@@ -45,0 +50,0 @@ if (!query.includes(selector)) { |
13670
58