data: function( elem, name, data ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
elem = elem == window ? windowData : elem;
Copied directly from the jQuery source.
Why is it not safe to use elem === window
?
Why does jQuery use type coercion on the window
object?
It would appear that in IE there's an issue with top
top == window // true
top === window // false