ninegrid2 6.1264.0 → 6.1265.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 +5 -2
- package/dist/bundle.esm.js +5 -2
- package/dist/nx/nxButtons.js +5 -2
- package/package.json +1 -1
- package/src/nx/nxButtons.js +5 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -122280,8 +122280,11 @@ class nxButtons extends nxDiv {
|
|
|
122280
122280
|
const btn = e.target.closest('button');
|
|
122281
122281
|
if (!btn) return;
|
|
122282
122282
|
|
|
122283
|
-
const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
|
|
122284
|
-
|
|
122283
|
+
//const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
|
|
122284
|
+
|
|
122285
|
+
const actionName = btn.getAttribute('on-click');
|
|
122286
|
+
|
|
122287
|
+
console.log(btn, actionName, this[actionName]);
|
|
122285
122288
|
console.log(typeof this[actionName]);
|
|
122286
122289
|
if (actionName) {
|
|
122287
122290
|
// 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
|
package/dist/bundle.esm.js
CHANGED
|
@@ -122276,8 +122276,11 @@ class nxButtons extends nxDiv {
|
|
|
122276
122276
|
const btn = e.target.closest('button');
|
|
122277
122277
|
if (!btn) return;
|
|
122278
122278
|
|
|
122279
|
-
const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
|
|
122280
|
-
|
|
122279
|
+
//const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
|
|
122280
|
+
|
|
122281
|
+
const actionName = btn.getAttribute('on-click');
|
|
122282
|
+
|
|
122283
|
+
console.log(btn, actionName, this[actionName]);
|
|
122281
122284
|
console.log(typeof this[actionName]);
|
|
122282
122285
|
if (actionName) {
|
|
122283
122286
|
// 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
|
package/dist/nx/nxButtons.js
CHANGED
|
@@ -31,8 +31,11 @@ class nxButtons extends nxDiv {
|
|
|
31
31
|
const btn = e.target.closest('button');
|
|
32
32
|
if (!btn) return;
|
|
33
33
|
|
|
34
|
-
const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
|
|
35
|
-
|
|
34
|
+
//const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
|
|
35
|
+
|
|
36
|
+
const actionName = btn.getAttribute('on-click');
|
|
37
|
+
|
|
38
|
+
console.log(btn, actionName, this[actionName])
|
|
36
39
|
console.log(typeof this[actionName])
|
|
37
40
|
if (actionName) {
|
|
38
41
|
// 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
|
package/package.json
CHANGED
package/src/nx/nxButtons.js
CHANGED
|
@@ -31,8 +31,11 @@ class nxButtons extends nxDiv {
|
|
|
31
31
|
const btn = e.target.closest('button');
|
|
32
32
|
if (!btn) return;
|
|
33
33
|
|
|
34
|
-
const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
|
|
35
|
-
|
|
34
|
+
//const actionName = btn.getAttribute('on-click') || btn.getAttribute('onClick') || btn.getAttribute('onclick');
|
|
35
|
+
|
|
36
|
+
const actionName = btn.getAttribute('on-click');
|
|
37
|
+
|
|
38
|
+
console.log(btn, actionName, this[actionName])
|
|
36
39
|
console.log(typeof this[actionName])
|
|
37
40
|
if (actionName) {
|
|
38
41
|
// 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
|