[gnome-shell-extensions] Fix a number of undeclared variable warnings
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] Fix a number of undeclared variable warnings
- Date: Tue, 30 Jul 2013 11:24:53 +0000 (UTC)
commit 2e5d8c738418b65609a00a47bba26761ecec6b58
Author: Giovanni Campagna <gcampagn redhat com>
Date: Tue Jul 30 13:23:47 2013 +0200
Fix a number of undeclared variable warnings
"for (prop in object)" needs a "var prop" before, or it declares
a global property.
extensions/alternate-tab/extension.js | 2 ++
extensions/native-window-placement/extension.js | 2 ++
extensions/window-list/extension.js | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/extensions/alternate-tab/extension.js b/extensions/alternate-tab/extension.js
index c3ef698..8b4cc74 100644
--- a/extensions/alternate-tab/extension.js
+++ b/extensions/alternate-tab/extension.js
@@ -54,6 +54,8 @@ function enable() {
}
function disable() {
+ var prop;
+
setKeybinding('switch-applications', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
setKeybinding('switch-group', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
setKeybinding('switch-applications-backward', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
diff --git a/extensions/native-window-placement/extension.js b/extensions/native-window-placement/extension.js
index 2fea947..b0dcc5d 100644
--- a/extensions/native-window-placement/extension.js
+++ b/extensions/native-window-placement/extension.js
@@ -480,6 +480,8 @@ function removeInjection(object, injection, name) {
}
function disable() {
+ var i;
+
for (i in workspaceInjections)
removeInjection(Workspace.Workspace.prototype, workspaceInjections, i);
for (i in winInjections)
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index d5ac261..2980fbe 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -842,6 +842,8 @@ function enable() {
}
function disable() {
+ var prop;
+
if (!windowList)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]