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