mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 00:36:47 +02:00
fix var declaration issues
This commit is contained in:
parent
695a5bcfd7
commit
9918357724
1 changed files with 3 additions and 3 deletions
|
@ -216,8 +216,8 @@ Panel = function(x, y) {
|
||||||
var clickedOverlay = Overlays.getOverlayAtPoint({x: event.x, y: event.y});
|
var clickedOverlay = Overlays.getOverlayAtPoint({x: event.x, y: event.y});
|
||||||
|
|
||||||
// If the user clicked any of the slider background then...
|
// If the user clicked any of the slider background then...
|
||||||
for (i in this.items) {
|
for (var i in this.items) {
|
||||||
widget = this.items[i].widget;
|
var widget = this.items[i].widget;
|
||||||
|
|
||||||
if (clickedOverlay == widget.background) {
|
if (clickedOverlay == widget.background) {
|
||||||
this.activeWidget = widget;
|
this.activeWidget = widget;
|
||||||
|
@ -253,7 +253,7 @@ Panel = function(x, y) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.destroy = function() {
|
this.destroy = function() {
|
||||||
for (i in this.items) {
|
for (var i in this.items) {
|
||||||
this.items[i].destroy();
|
this.items[i].destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue