From 9ec76a9a8736a8361fa7df414dfbd3d5fd45a792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Teoman=20T=C4=B1ng=C4=B1r?= <46353718+teomanofficial@users.noreply.github.com> Date: Sat, 5 Oct 2024 02:25:27 +0300 Subject: [PATCH] abp.js - event trigger allow subsequent callbacks executed when error occurred on current in one --- npm/packs/core/src/abp.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/npm/packs/core/src/abp.js b/npm/packs/core/src/abp.js index 7a82f58e98..45b8ac3ba3 100644 --- a/npm/packs/core/src/abp.js +++ b/npm/packs/core/src/abp.js @@ -480,7 +480,11 @@ var abp = abp || {}; var args = Array.prototype.slice.call(arguments, 1); for (var i = 0; i < callbacks.length; i++) { - callbacks[i].apply(this, args); + try { + callbacks[i].apply(this, args); + } catch(e) { + console.error(e); + } } };