Browse Source

abp.js - event trigger

allow subsequent callbacks executed when error occurred on current in one
pull/20976/head
Hasan Teoman Tıngır 1 year ago
committed by GitHub
parent
commit
9ec76a9a87
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      npm/packs/core/src/abp.js

6
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);
}
}
};

Loading…
Cancel
Save