[Pkg-mozext-commits] [greasemonkey] 36/41: Define the `windowId` before using it.
David Prévot
taffit at moszumanska.debian.org
Thu Apr 30 22:06:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit ba63ca2ccaa5e1c25aee52035a3e913fcd060231
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Tue Apr 28 16:27:42 2015 -0400
Define the `windowId` before using it.
Fixes #2139
---
content/framescript.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/content/framescript.js b/content/framescript.js
index 13a69d4..a4c04c2 100644
--- a/content/framescript.js
+++ b/content/framescript.js
@@ -256,8 +256,8 @@ ContentObserver.prototype.runScripts = function(aRunWhen, aContentWin) {
if (!GM_util.isGreasemonkeyable(url)) return;
- var scriptRunner = gScriptRunners[windowId];
var windowId = GM_util.windowId(aContentWin);
+ var scriptRunner = gScriptRunners[windowId];
if (!scriptRunner) {
scriptRunner = new ScriptRunner(aContentWin, url);
gScriptRunners[windowId] = scriptRunner;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list