ninegrid2 6.1444.0 → 6.1446.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.
@@ -12263,11 +12263,10 @@ class ngCellEx extends HTMLElement
12263
12263
  this.shadowRoot.querySelectorAll("button,ng-expand-button").forEach(button => {
12264
12264
 
12265
12265
  $(button).on("click", e => {
12266
- console.log(this);
12267
- console.log(button);
12268
- let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell.getAttribute("onbuttonclick") || this.cell.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
12269
12266
 
12270
- if (fn) {
12267
+ let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell?.getAttribute("onbuttonclick") || this.cell?.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
12268
+
12269
+ if (fn && this.owner) {
12271
12270
 
12272
12271
  fn = fn.replace("()","");
12273
12272
 
@@ -12259,11 +12259,10 @@ class ngCellEx extends HTMLElement
12259
12259
  this.shadowRoot.querySelectorAll("button,ng-expand-button").forEach(button => {
12260
12260
 
12261
12261
  $(button).on("click", e => {
12262
- console.log(this);
12263
- console.log(button);
12264
- let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell.getAttribute("onbuttonclick") || this.cell.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
12265
12262
 
12266
- if (fn) {
12263
+ let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell?.getAttribute("onbuttonclick") || this.cell?.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
12264
+
12265
+ if (fn && this.owner) {
12267
12266
 
12268
12267
  fn = fn.replace("()","");
12269
12268
 
@@ -186,11 +186,10 @@ export class ngCellEx extends HTMLElement
186
186
  this.shadowRoot.querySelectorAll("button,ng-expand-button").forEach(button => {
187
187
 
188
188
  $(button).on("click", e => {
189
- console.log(this);
190
- console.log(button);
191
- let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell.getAttribute("onbuttonclick") || this.cell.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
192
189
 
193
- if (fn) {
190
+ let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell?.getAttribute("onbuttonclick") || this.cell?.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
191
+
192
+ if (fn && this.owner) {
194
193
 
195
194
  fn = fn.replace("()","");
196
195
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1444.0",
4
+ "version": "6.1446.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -186,11 +186,10 @@ export class ngCellEx extends HTMLElement
186
186
  this.shadowRoot.querySelectorAll("button,ng-expand-button").forEach(button => {
187
187
 
188
188
  $(button).on("click", e => {
189
- console.log(this);
190
- console.log(button);
191
- let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell.getAttribute("onbuttonclick") || this.cell.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
192
189
 
193
- if (fn) {
190
+ let fn = this.getAttribute("onbuttonclick") || this.getAttribute("onButtonClick") || this.cell?.getAttribute("onbuttonclick") || this.cell?.getAttribute("onButtonClick");// || this.getAttribute("@onlinkclick");
191
+
192
+ if (fn && this.owner) {
194
193
 
195
194
  fn = fn.replace("()","");
196
195