mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-15 01:44:25 +02:00
events.js: do not apply event handlers without...
...an Icinga object. Added a log line, eventually we'll catch this one far day :)
This commit is contained in:
parent
28204762ab
commit
b6fd4f5584
@ -36,6 +36,12 @@
|
|||||||
var self = event.data.self;
|
var self = event.data.self;
|
||||||
var icinga = self.icinga;
|
var icinga = self.icinga;
|
||||||
|
|
||||||
|
if (! icinga) {
|
||||||
|
// Attempt to catch a rare error, race condition, whatever
|
||||||
|
console.log('Got no icinga in applyHandlers');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (self.initializeModules) {
|
if (self.initializeModules) {
|
||||||
var loaded = false;
|
var loaded = false;
|
||||||
var moduleName = $target.data('icingaModule');
|
var moduleName = $target.data('icingaModule');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user