[Greasemonkey] 0.5.1 (a few small things), and a plan

Adam Judson adamsplugins at gmail.com
Fri Aug 26 13:53:18 EDT 2005


Well, gm certainly produces less warnings than the browser it self, but they all
seem easy to fix...

A

Here's what I see at startup.  

Warning: anonymous function does not always return a value
Source File: chrome://greasemonkey/content/prefmanager.js
Line: 80, Column: 2
Source Code:
  }

Warning: redeclaration of var i
Source File: chrome://greasemonkey/content/versioning.js
Line: 176, Column: 13
Source Code:
    for (var i = 0; (script = config.scripts[i]); i++) {  

Warning: redeclaration of var i
Source File: chrome://greasemonkey/content/menucommander.js
Line: 86, Column: 11
Source Code:
  for (var i = 0; i < this.keys.length; i++) {

Warning: test for equality (==) mistyped as assignment (=)?
Source File: chrome://greasemonkey/content/scriptdownloader.js
Line: 136, Column: 34
Source Code:
    while (result = lines[lnIdx++]) {

Warning: test for equality (==) mistyped as assignment (=)?
Source File: chrome://greasemonkey/content/scriptdownloader.js
Line: 146, Column: 36
Source Code:
      while (result = lines[lnIdx++]) {

Warning: redeclaration of var j
Source File: chrome://greasemonkey/content/config.js
Line: 133, Column: 15
Source Code:
      for (var j = 0; j < scriptObj.excludes.length; j++) {

Warning: redeclaration of function installContextItemClicked
Source File: chrome://greasemonkey/content/browser.js
Line: 379
Source Code:
}



On 26/08/05, Aaron Boodman <zboogs at gmail.com> wrote:
> On 8/26/05, Adam Judson <adamsplugins at gmail.com> wrote:
> > Boy, there sure are a lot of warnings in the javascript console...
> 
> Warnings or messages? What do the warnings say? I don't get that many...
> 
> --
> Aaron
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list