Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14051 closed bug (notabug)

Grep possible error

Reported by: guto.pro@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.3
Keywords: Cc:
Blocked by: Blocking:

Description

Hi,

When i use the grep function with an null array the jquery returns "Cannot read property 'length' of null" Example: var obj = null; jQuery.grep( obj, function(i,o){

});

Change History (1)

comment:1 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

That is because null is not a valid input.

Note: See TracTickets for help on using tickets.