Opened 13 years ago
Closed 12 years ago
#6316 closed bug (invalid)
Some jQuery methods don't their check private variables.
Reported by: | Larry Battle | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | core | Version: | 1.4.2 |
Keywords: | error | Cc: | |
Blocked by: | Blocking: |
Description
When faced with no arguments, most methods error out with no problems or return a value. But... Each of the following method calls, starting with css, will return an error and stop the rest of the script.
$(document.body).css().each().filter().map().ready(); $(document.body).text('Test Completed.');
Demo: http://jsbin.com/eriva/
Attachments (1)
Change History (5)
Changed 13 years ago by
Attachment: | jQuery error - no arguments for methods.htm added |
---|
comment:2 Changed 13 years ago by
jQuery should just return the jquery object to fail safe.
if( !arguments.length ){ return this; }
comment:3 Changed 13 years ago by
Component: | unfiled → core |
---|
comment:4 Changed 12 years ago by
Priority: | → undecided |
---|---|
Resolution: | → invalid |
Status: | new → closed |
The cases are all incorrect uses of the methods per the documentation and api.
Note: See
TracTickets for help on using
tickets.
jQuery Error - no arguments with methods