mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
js: Accept non-jQuery nodes in method EventListener.bind()
This commit is contained in:
parent
e4ff391b1a
commit
b17be671bc
@ -42,6 +42,11 @@
|
|||||||
*/
|
*/
|
||||||
EventListener.prototype.bind = function (emitter) {
|
EventListener.prototype.bind = function (emitter) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
|
if (typeof emitter.jquery === 'undefined') {
|
||||||
|
emitter = $(emitter);
|
||||||
|
}
|
||||||
|
|
||||||
$.each(this.handlers, function(i, handler) {
|
$.each(this.handlers, function(i, handler) {
|
||||||
_this.icinga.logger.debug('bind: ' + handler.evt + '(' + handler.cond + ')');
|
_this.icinga.logger.debug('bind: ' + handler.evt + '(' + handler.cond + ')');
|
||||||
emitter.on(
|
emitter.on(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user