Skip to main content

Bug Tracker

Side navigation

#77 closed bug (fixed)

Opened July 18, 2006 09:05AM UTC

Closed April 23, 2017 11:30PM UTC

JS 'warnings' generated in firefox

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

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

Attachments (0)
Change History (6)

Changed July 26, 2006 10:28AM UTC by anonymous comment:1

component: ajaxcore

Changed August 15, 2006 04:58AM UTC by john comment:2

resolution: → worksforme
status: newclosed

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

Changed August 15, 2006 04:58AM UTC by john comment:3

version: → 1.0

Changed October 11, 2006 12:05AM UTC by hultmann comment:4

resolution: worksforme
status: closedreopened

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

Changed October 15, 2006 02:58AM UTC by john comment:5

resolution: → fixed
status: reopenedclosed

Ok, I went through and fixed all the problems. These have all been fixed in SVN rev 440.

Changed April 23, 2017 11:30PM UTC by rjollos comment:6

cc: ""
component: → ajax
description: 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\ \ \ 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 \ \ \
keywords: ""
priority: → undecided
resolution: → fixed
status: reopenedclosed
type: → bug