disconnected
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "disconnected", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Enables `connected` and `disconnected` element's listeners.", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
# disconnected | ||
Enables `connected` and `disconnected` element's listeners. | ||
In less than 0.5K, it enables `connected` and `disconnected` element's listeners to [hyperHTML](https://github.com/WebReflection/hyperHTML#hyperhtml), but it can also be used with any other library/vanilla JS. | ||
The only optional dependencies it has are constructable `Event` and the `WeakSet`. Both must be passed along as configuration object, and polyfills might be needed only for legacy browsers. | ||
```js | ||
@@ -23,8 +25,8 @@ // requires both modern Event and WeakSet | ||
The module is compatible with every browser, as long as usable `Event` and `WeakSet` are provided. | ||
### Compatibility | ||
Even IE9. | ||
[Even IE9](https://webreflection.github.io/disconnected/test/), as long as a usable `Event` and `WeakSet` are provided. | ||
### DOM Level 0 Like events ? | ||
@@ -50,2 +52,2 @@ | ||
div.onconnected = null; | ||
``` | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12675
52