Don't declare global variables
Fix a typo in panel.js, and ensure that all variables used in functions are scoped to the block (using let), to avoid polluting the global namespace. https://bugzilla.gnome.org/show_bug.cgi?id=643210
This commit is contained in:
@ -424,7 +424,7 @@ ThumbnailsBox.prototype = {
|
||||
this._indicatorY = 0; // only used when _animatingIndicator is true
|
||||
|
||||
this._stateCounts = {};
|
||||
for (key in ThumbnailState)
|
||||
for (let key in ThumbnailState)
|
||||
this._stateCounts[ThumbnailState[key]] = 0;
|
||||
|
||||
this._thumbnails = [];
|
||||
@ -441,7 +441,7 @@ ThumbnailsBox.prototype = {
|
||||
this._stateUpdateQueued = false;
|
||||
|
||||
this._stateCounts = {};
|
||||
for (key in ThumbnailState)
|
||||
for (let key in ThumbnailState)
|
||||
this._stateCounts[ThumbnailState[key]] = 0;
|
||||
|
||||
// The "porthole" is the portion of the screen that we show in the workspaces
|
||||
|
Reference in New Issue
Block a user