[Pkg-mozext-commits] [firebug] 50/59: Avoid var-name collision
    David Prévot 
    taffit at moszumanska.debian.org
       
    Thu Aug 14 14:52:57 UTC 2014
    
    
  
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit 67ce13046b6bee9d217c00fbe3657e49816a12ca
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Mon Aug 11 12:39:02 2014 +0200
    Avoid var-name collision
---
 extension/content/firebug/debugger/script/sourceTool.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/extension/content/firebug/debugger/script/sourceTool.js b/extension/content/firebug/debugger/script/sourceTool.js
index 9edefb4..19bfc1f 100644
--- a/extension/content/firebug/debugger/script/sourceTool.js
+++ b/extension/content/firebug/debugger/script/sourceTool.js
@@ -213,8 +213,7 @@ SourceTool.prototype = Obj.extend(new Tool(),
         if (!sourceFile || !sourceFile.dynamic)
             return;
 
-        var scripts = sourceFile.scripts;
-        if (!scripts.length)
+        if (!sourceFile.scripts.length)
         {
             TraceError.sysout("sourceTool.onAddBreakpoint; ERROR no script object!");
             return;
@@ -224,11 +223,11 @@ SourceTool.prototype = Obj.extend(new Tool(),
 
         // Set the breakpoint in all scripts associated with the same URL
         // as the breakpoint.
-        for (var parentScript of scripts)
+        for (var parentScript of sourceFile.scripts)
         {
             var childScripts = parentScript.getChildScripts();
 
-            scripts = [parentScript];
+            var scripts = [parentScript];
             [].push.apply(scripts, childScripts);
 
             for (var script of scripts)
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
    
    
More information about the Pkg-mozext-commits
mailing list