ninegrid2 6.968.0 → 6.970.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.
@@ -121909,8 +121909,8 @@ class NxLayout extends HTMLElement {
121909
121909
  // 이전 콘텐츠를 모두 제거합니다.
121910
121910
  console.log("====================");
121911
121911
 
121912
- const numColumns = parseInt(this.getAttribute('columns'), 1);
121913
- const numRows = parseInt(this.getAttribute('rows'), 1);
121912
+ const numColumns = Number(this.getAttribute('columns') || "1");
121913
+ const numRows = Number(this.getAttribute('rows') || "1");
121914
121914
  const children = Array.from(this.children);
121915
121915
 
121916
121916
  if (children.length <= 0) return;
@@ -121905,8 +121905,8 @@ class NxLayout extends HTMLElement {
121905
121905
  // 이전 콘텐츠를 모두 제거합니다.
121906
121906
  console.log("====================");
121907
121907
 
121908
- const numColumns = parseInt(this.getAttribute('columns'), 1);
121909
- const numRows = parseInt(this.getAttribute('rows'), 1);
121908
+ const numColumns = Number(this.getAttribute('columns') || "1");
121909
+ const numRows = Number(this.getAttribute('rows') || "1");
121910
121910
  const children = Array.from(this.children);
121911
121911
 
121912
121912
  if (children.length <= 0) return;
@@ -18,8 +18,8 @@ class NxLayout extends HTMLElement {
18
18
  // 이전 콘텐츠를 모두 제거합니다.
19
19
  console.log("====================");
20
20
 
21
- const numColumns = parseInt(this.getAttribute('columns'), 1);
22
- const numRows = parseInt(this.getAttribute('rows'), 1);
21
+ const numColumns = Number(this.getAttribute('columns') || "1");
22
+ const numRows = Number(this.getAttribute('rows') || "1");
23
23
  const children = Array.from(this.children);
24
24
 
25
25
  if (children.length <= 0) return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.968.0",
4
+ "version": "6.970.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -18,8 +18,8 @@ class NxLayout extends HTMLElement {
18
18
  // 이전 콘텐츠를 모두 제거합니다.
19
19
  console.log("====================");
20
20
 
21
- const numColumns = parseInt(this.getAttribute('columns'), 1);
22
- const numRows = parseInt(this.getAttribute('rows'), 1);
21
+ const numColumns = Number(this.getAttribute('columns') || "1");
22
+ const numRows = Number(this.getAttribute('rows') || "1");
23
23
  const children = Array.from(this.children);
24
24
 
25
25
  if (children.length <= 0) return;