ninegrid2 6.167.0 → 6.169.0
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.
- package/dist/bundle.cjs.js +4 -1
- package/dist/bundle.esm.js +4 -1
- package/dist/utils/ninegrid.js +4 -1
- package/package.json +1 -1
- package/src/utils/ninegrid.js +4 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -10729,12 +10729,15 @@ class ninegrid {
|
|
|
10729
10729
|
|
|
10730
10730
|
if (!("shadow" in Element.prototype)) {
|
|
10731
10731
|
Object.defineProperty(Element.prototype, "shadow", {
|
|
10732
|
+
self: this,
|
|
10732
10733
|
get: function () {
|
|
10733
10734
|
return {
|
|
10734
10735
|
closest: function (selector) {
|
|
10735
|
-
let currentElement =
|
|
10736
|
+
let currentElement = self;
|
|
10736
10737
|
|
|
10737
10738
|
while (currentElement) {
|
|
10739
|
+
|
|
10740
|
+
console.log(currentElement);
|
|
10738
10741
|
if (currentElement.matches(selector)) return currentElement;
|
|
10739
10742
|
|
|
10740
10743
|
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
package/dist/bundle.esm.js
CHANGED
|
@@ -10727,12 +10727,15 @@ class ninegrid {
|
|
|
10727
10727
|
|
|
10728
10728
|
if (!("shadow" in Element.prototype)) {
|
|
10729
10729
|
Object.defineProperty(Element.prototype, "shadow", {
|
|
10730
|
+
self: this,
|
|
10730
10731
|
get: function () {
|
|
10731
10732
|
return {
|
|
10732
10733
|
closest: function (selector) {
|
|
10733
|
-
let currentElement =
|
|
10734
|
+
let currentElement = self;
|
|
10734
10735
|
|
|
10735
10736
|
while (currentElement) {
|
|
10737
|
+
|
|
10738
|
+
console.log(currentElement);
|
|
10736
10739
|
if (currentElement.matches(selector)) return currentElement;
|
|
10737
10740
|
|
|
10738
10741
|
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
package/dist/utils/ninegrid.js
CHANGED
|
@@ -23,12 +23,15 @@ export class ninegrid {
|
|
|
23
23
|
|
|
24
24
|
if (!("shadow" in Element.prototype)) {
|
|
25
25
|
Object.defineProperty(Element.prototype, "shadow", {
|
|
26
|
+
self: this,
|
|
26
27
|
get: function () {
|
|
27
28
|
return {
|
|
28
29
|
closest: function (selector) {
|
|
29
|
-
let currentElement =
|
|
30
|
+
let currentElement = self;
|
|
30
31
|
|
|
31
32
|
while (currentElement) {
|
|
33
|
+
|
|
34
|
+
console.log(currentElement);
|
|
32
35
|
if (currentElement.matches(selector)) return currentElement;
|
|
33
36
|
|
|
34
37
|
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
package/package.json
CHANGED
package/src/utils/ninegrid.js
CHANGED
|
@@ -23,12 +23,15 @@ export class ninegrid {
|
|
|
23
23
|
|
|
24
24
|
if (!("shadow" in Element.prototype)) {
|
|
25
25
|
Object.defineProperty(Element.prototype, "shadow", {
|
|
26
|
+
self: this,
|
|
26
27
|
get: function () {
|
|
27
28
|
return {
|
|
28
29
|
closest: function (selector) {
|
|
29
|
-
let currentElement =
|
|
30
|
+
let currentElement = self;
|
|
30
31
|
|
|
31
32
|
while (currentElement) {
|
|
33
|
+
|
|
34
|
+
console.log(currentElement);
|
|
32
35
|
if (currentElement.matches(selector)) return currentElement;
|
|
33
36
|
|
|
34
37
|
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|