Fix a number of undeclared variable warnings

"for (prop in object)" needs a "var prop" before, or it declares
a global property.
This commit is contained in:
Giovanni Campagna
2013-07-30 13:23:47 +02:00
parent 1d6f85c8f4
commit 2e5d8c7384
3 changed files with 6 additions and 0 deletions

View File

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

View File

@@ -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)

View File

@@ -842,6 +842,8 @@ function enable() {
}
function disable() {
var prop;
if (!windowList)
return;