Avoid local variable name `self' in ui.js

refs #10703
This commit is contained in:
Alexander A. Klimov 2016-09-01 16:32:31 +02:00
parent 4f52beb32a
commit cf5e26c56c

View File

@ -211,16 +211,16 @@
* Our window got resized, let's fix our UI * Our window got resized, let's fix our UI
*/ */
onWindowResize: function (event) { onWindowResize: function (event) {
var self = event.data.self; var _this = event.data.self;
if (self.layoutHasBeenChanged()) { if (_this.layoutHasBeenChanged()) {
self.icinga.logger.info( _this.icinga.logger.info(
'Layout change detected, switching to', 'Layout change detected, switching to',
self.currentLayout _this.currentLayout
); );
} }
self.fixControls(); _this.fixControls();
self.refreshDebug(); _this.refreshDebug();
}, },
/** /**
@ -458,7 +458,6 @@
* Initialize all TriStateCheckboxes in the given html * Initialize all TriStateCheckboxes in the given html
*/ */
initializeTriStates: function ($html) { initializeTriStates: function ($html) {
var self = this;
$('div.tristate', $html).each(function(index, item) { $('div.tristate', $html).each(function(index, item) {
var $target = $(item); var $target = $(item);