@joyzl/eno 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -980,7 +980,7 @@ function element(e) {
980
980
  }
981
981
 
982
982
  while (e) {
983
- if (e.userData) {
983
+ if (e.__ENO_ENTITY) {
984
984
  return e;
985
985
  } else {
986
986
  e = e.parentElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joyzl/eno",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Easy Node Object",
5
5
  "main": "dist/joyzl-eno.js",
6
6
  "module": "index.js",