Bug Tracker

Opened 12 years ago

Last modified 12 years ago

#5669 closed bug

isPlainObject( null/undefined/window ) on IE — at Version 1

Reported by: Robert Katić Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.4a1
Keywords: isPlanarObject Cc:
Blocked by: Blocking:

Description (last modified by dmethvin)

On IE:

jQuery.isPlainObject( null );
// throws "'null.nodeType' is null or not an object"
jQuery.isPlainObject( undefined );
// throws "'undefined.nodeType' is null or not an object"
jQuery.isPlainObject( window );
// returns true

Patch NOTE: With this patch isPlanarObject will work with windows too, until an global (window) constructor is not defined.

Change History (1)

comment:1 Changed 12 years ago by dmethvin

Description: modified (diff)
Summary: isPlanarObject( null/undefined/window ) on IEisPlainObject( null/undefined/window ) on IE

Corrected the spelling of the method name; the patch looks like a good idea.

Note: See TracTickets for help on using tickets.