diff --git a/public/js/icinga/history.js b/public/js/icinga/history.js index a0ebffa32..d0f6f6612 100644 --- a/public/js/icinga/history.js +++ b/public/js/icinga/history.js @@ -144,8 +144,8 @@ */ onHistoryChange: function (event) { - var self = event.data.self, - icinga = self.icinga; + var _this = event.data.self, + icinga = _this.icinga; icinga.logger.debug('Got a history change'); @@ -157,9 +157,9 @@ } // keep the last pushed url in sync with history changes - self.lastPushUrl = location.href; + _this.lastPushUrl = location.href; - self.applyLocationBar(); + _this.applyLocationBar(); // notify behaviors of the state change $.each(this.icinga.behaviors, function (i, behavior) { diff --git a/public/js/icinga/timer.js b/public/js/icinga/timer.js index 153e5325f..e16c5fe1d 100644 --- a/public/js/icinga/timer.js +++ b/public/js/icinga/timer.js @@ -49,8 +49,8 @@ * The initialization function starts our ticker */ initialize: function () { - var self = this; - this.ticker = setInterval(function () { self.tick(); }, this.interval); + var _this = this; + this.ticker = setInterval(function () { _this.tick(); }, this.interval); }, /**