owl-bt
Version:
owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a way, that it supports special node items like decorators and services. This makes trees smaller and much more readable.
19 lines (15 loc) • 488 B
JavaScript
;
(function() {
function alertExceptionHandler($delegate, $injector) {
let alertList;
return function(exception, cause) {
alertList = alertList || $injector.get('AlertList');
alertList.addErr(exception.stack || exception.message || exception);
$delegate(exception, cause);
};
}
angular.module('editorApp')
.config(['$provide', function($provide) {
$provide.decorator('$exceptionHandler', alertExceptionHandler);
}]);
})();