fix var declaration issues

This commit is contained in:
Sam Gateau 2015-04-01 13:37:41 -07:00
parent 695a5bcfd7
commit 9918357724

View file

@ -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();
} }
} }