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