Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Undefined variable in svg.js source code #378

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I edit the svg.js file with Netbeans.
I noticed this:

- lign 312 : warning problem assigned :     
while (current = result.iterateNext()) {
Instead of 
while ((current = result.iterateNext())) {

- lign 7464  : bad cut and paste ;-)
flash.setAttribute

- there are many redeclaration variables.
- there are many warnings for "function does not always return a value".

Original issue reported on code.google.com by lr.b21...@gmail.com on 3 Nov 2009 at 11:26

GoogleCodeExporter commented 8 years ago
NetBeans probably has a basic JavaScript syntax checker. I'm doing some pretty 
funky
stuff in svg.js that a basic JS syntax checker would probably get confused 
about,
using lots of closures, anonymous functions, etc. The issue on line 312 seems 
real
but the others seem spurious.

Original comment by bradneub...@gmail.com on 3 Nov 2009 at 4:00

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 3 Nov 2009 at 4:01

GoogleCodeExporter commented 8 years ago
Other lines that have issues:

line 1176

Original comment by bradneub...@gmail.com on 3 Nov 2009 at 6:42

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 10 Nov 2009 at 9:25

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 19 Nov 2009 at 9:48

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1029.

Original comment by bradneub...@gmail.com on 2 Dec 2009 at 3:08