Using FF with FireBug, and loading the library all by itself, there are
25 "info" entries in the FireBug Console.
The list as it stands is ...
variable object hides argument
var __method = this, args = $A(arguments), object = args.shift();\n
prototype.js (line 76)
test for equality (==) mistyped as assignment (=)?
if (match = source.match(pattern)) {\n
prototype.js (line 158)
test for equality (==) mistyped as assignment (=)?
if (result = !!(iterator || Prototype.K)(value, index))\n
prototype.js (line 358)
anonymous function does not always return a value
},\n
prototype.js (line 975)
test for equality (==) mistyped as assignment (=)?
if (receiver = $(receiver)) {\n
prototype.js (line 1010)
test for equality (==) mistyped as assignment (=)?
while (element = element[property])\n
prototype.js (line 1204)
anonymous function does not always return a value
if (elementClassName.length == 0) return false;\n
prototype.js (line 1296)
anonymous function does not always return a value
return true;\n
prototype.js (line 1299)
anonymous function does not always return a value
return false;\n
prototype.js (line 1300)
anonymous function does not always return a value
return element;\n
prototype.js (line 1306)
anonymous function does not always return a value
return element;\n
prototype.js (line 1312)
anonymous function does not always return a value
return element;\n
prototype.js (line 1318)
test for equality (==) mistyped as assignment (=)?
while (element = element.parentNode)\n
prototype.js (line 1350)
test for equality (==) mistyped as assignment (=)?
if(value = (element.getStyle('filter') ||
'').match(/alpha\(opacity=(.*)\)...
prototype.js (line 1384)
test for equality (==) mistyped as assignment (=)?
while (match =
expr.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|(...
prototype.js (line 1759)
test for equality (==) mistyped as assignment (=)?
while (match = expr.match(/^([^a-z0-9_-])?([a-z0-9_-]+)(.*)/i)) {\n
prototype.js (line 1767)
anonymous function does not always return a value
},\n
prototype.js (line 1780)
test for equality (==) mistyped as assignment (=)?
if (clause = params.id)\n
prototype.js (line 1787)
test for equality (==) mistyped as assignment (=)?
if (clause = params.tagName)\n
prototype.js (line 1789)
test for equality (==) mistyped as assignment (=)?
if (clause = params.attributes) {\n
prototype.js (line 1794)
test for equality (==) mistyped as assignment (=)?
if (element = $(this.params.id))\n
prototype.js (line 1827)
anonymous function does not always return a value
},\n
prototype.js (line 2392)
test for equality (==) mistyped as assignment (=)?
} while (element = element.offsetParent);\n
prototype.js (line 2406)
test for equality (==) mistyped as assignment (=)?
} while (element = element.parentNode);\n
prototype.js (line 2414)
assignment to undeclared variable ObjectRange
ObjectRange = Class.create();
prototype.js (line 723)
None of these are life threatening, but they can be removed by a little
spring cleaning.
When debugging, not having the warnings helps see the real problems.
I've only just started looking into prototype.js.
I've just started using scriptaluous too.
Thank you.
Richard Quadling.
I don't want to turn off the notices as my own code sometimes has them
and I go "Doh! Duh!" and fit it. It would remove the noise and help
other developers who may not be as efficiently experienced and who do
make the sort of mistakes that these notices are highlighting.
Richard.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
As there is no compiler involved, these "warnings" are generated by
the JavaScript interpreter, and are purely meant for catching typos
and other things. They are more annoying than helpful if you know
what you're doing.
Mind you, these warnings are purely out of the imagination of the
developers of one particular browser, and if you get rid of these
warnings, suddenly other warnings could pop up in the next browser
version...
Here's an article about it:
http://www.howtocreate.co.uk/strictJSFirefox.html
We have perfectly valid JavaScript, so no need for a patch. Also, if
something breaks in JavaScript in 5 years it will take half the
internet down with it, so no need to have headaches over that... :)
Best,
Thomas
An excellent product and extremely useful for me.
Thank you again.
Richard Quadling.