If the object passed into jQuery.each is null or undefined you get an error at object.length on the first line. Maybe there should be a check if (object == null) return object;? What do we think?
- [jQuery] jQuery.each need extra check for object pbcomm

