Bug Tracker

Opened 17 years ago

Closed 6 years ago

#77 closed bug (fixed)

JS 'warnings' generated in firefox

Reported by: alistair.potts@… Owned by:
Priority: undecided Milestone:
Component: ajax Version:
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Ryan J Ollos)

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.


Change History (6)

comment:1 Changed 17 years ago by anonymous

Component: ajaxcore

comment:2 Changed 17 years ago by john

Resolution: worksforme
Status: newclosed

I can't duplicate this - I think it's been fixed in SVN.

comment:3 Changed 17 years ago by john

Version: 1.0

comment:4 Changed 17 years ago by hultmann

Resolution: worksforme
Status: closedreopened

Warnings appear when javascript.options.strict=true (about:config)

comment:5 Changed 17 years ago by john

Resolution: fixed
Status: reopenedclosed

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 Ryan J Ollos

Cc: &#34 &#34 removed
Component: ajax
Description: modified (diff)
Keywords: &#34 &#34 removed
Priority: undecided
Resolution: fixed
Status: reopenedclosed
Type: bug
Note: See TracTickets for help on using tickets.