From 070573b9c0454f636ecebb218cddd2408bfab632 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 26 Mar 2014 09:25:57 +0000 Subject: [PATCH] Fix event handler declaration accessing global icinga object --- public/js/icinga/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 600d83b05..21c16f569 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -81,7 +81,7 @@ $( window ).on('beforeunload', { self: this }, this.onUnload); // We catch scroll events in our containers - $('.container').on('scroll', icinga.events.onContainerScroll); + $('.container').on('scroll', this.icinga.events.onContainerScroll); // We want to catch each link click $(document).on('click', 'a', { self: this }, this.linkClicked);