@whitesev/pops 2.0.12 → 2.0.13

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/index.umd.js CHANGED
@@ -10317,11 +10317,14 @@
10317
10317
  */
10318
10318
  async function liElementClickEvent(clickEvent) {
10319
10319
  if (typeof item.callback === "function") {
10320
- OriginPrototype.Object.defineProperty(menuEvent, "target", {
10321
- get() {
10322
- return menuEventTarget;
10323
- },
10324
- });
10320
+ try {
10321
+ OriginPrototype.Object.defineProperty(menuEvent, "target", {
10322
+ get() {
10323
+ return menuEventTarget;
10324
+ },
10325
+ });
10326
+ }
10327
+ catch (error) { }
10325
10328
  let callbackResult = await item.callback(clickEvent, menuEvent, menuLiElement, menuListenerRootNode);
10326
10329
  if (typeof callbackResult === "boolean" &&
10327
10330
  callbackResult == false) {