Opened 17 years ago
Closed 6 years ago
#77 closed bug (fixed)
JS 'warnings' generated in firefox
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | ajax | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
This isn't a bug - but it's really annoying! The firefox javascript console is really useful for ensuring you're writing good code - but at the moment jquery triggers 4 warnings. This is annoying because you can't immediately tell whether it's your own code or jquery, which means firing up the errors console etc. etc. I believe a lot of web developers use the js console, so I would suggest the trivial fixes are worthwhile.
The warnings are (rev 110) "function does not always return a value"
- jQuery.hasWord
- handle event
- function jQuery
"undefined property" ret[0] (line 602) - just put a check in first to see if ret has length.
Alistair
Change History (6)
comment:1 Changed 17 years ago by
Component: | ajax → core |
---|
comment:2 Changed 17 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:3 Changed 17 years ago by
Version: | → 1.0 |
---|
comment:4 Changed 17 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Warnings appear when javascript.options.strict=true (about:config)
comment:5 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Ok, I went through and fixed all the problems. These have all been fixed in SVN rev 440.
comment:6 Changed 6 years ago by
Cc: | " " removed |
---|---|
Component: | → ajax |
Description: | modified (diff) |
Keywords: | " " removed |
Priority: | → undecided |
Resolution: | → fixed |
Status: | reopened → closed |
Type: | → bug |
I can't duplicate this - I think it's been fixed in SVN.