ninegrid2 6.1262.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 +6 -2
- package/dist/bundle.esm.js +6 -2
- package/dist/nx/nxButtons.js +6 -2
- package/package.json +1 -1
- package/src/nx/nxButtons.js +6 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -122280,8 +122280,12 @@ 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]);
|
|
122288
|
+
console.log(typeof this[actionName]);
|
|
122285
122289
|
if (actionName) {
|
|
122286
122290
|
// 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
|
|
122287
122291
|
if (typeof this[actionName] === 'function') {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -122276,8 +122276,12 @@ 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]);
|
|
122284
|
+
console.log(typeof this[actionName]);
|
|
122281
122285
|
if (actionName) {
|
|
122282
122286
|
// 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
|
|
122283
122287
|
if (typeof this[actionName] === 'function') {
|
package/dist/nx/nxButtons.js
CHANGED
|
@@ -31,8 +31,12 @@ 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])
|
|
39
|
+
console.log(typeof this[actionName])
|
|
36
40
|
if (actionName) {
|
|
37
41
|
// 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
|
|
38
42
|
if (typeof this[actionName] === 'function') {
|
package/package.json
CHANGED
package/src/nx/nxButtons.js
CHANGED
|
@@ -31,8 +31,12 @@ 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])
|
|
39
|
+
console.log(typeof this[actionName])
|
|
36
40
|
if (actionName) {
|
|
37
41
|
// 1. 먼저 엘리먼트 자체(this)에 해당 이름의 함수가 있는지 확인
|
|
38
42
|
if (typeof this[actionName] === 'function') {
|