Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8995 closed bug (invalid)

jQuery.map( iframejQuery() ) enumerating properties.

Reported by: Robert Katić Owned by:
Priority: low Milestone: 1.next
Component: core Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

jQuery.map( iframejQuery() ) enumerating properties.

Test: http://jsfiddle.net/GJ3MH/

Change History (9)

comment:2 Changed 9 years ago by timmywil

Component: unfiledcore
Priority: undecidedlow
Resolution: invalid
Status: newclosed

Mixing versions of jQuery will break things as they should not be expected to work together. jQuery() is a different object than the jQuery you are using so it is expected that it would iterate the prototype. Here is an example using the iframe's jQuery: http://jsfiddle.net/timmywil/GJ3MH/2/

comment:3 Changed 9 years ago by Robert Katić

Are you serious? That makes sense to you? jQuery supports to use more version together from ages. Is it changed lately?

comment:4 Changed 9 years ago by timmywil

It's not out of the ordinary. Having multiple versions of jQuery on a page is supported, but they should always be used modularly. window.jQuery can only be one thing on a page and when used within an iframe, the iframe's jQuery should be used.

comment:5 Changed 9 years ago by Robert Katić

Not true. jQuery supports more versions on the same window! That is also the reason why jQuery.expando is something like "jQuery325535543552352", where it is generated in the way it will not conflict with other jQuery-es. Are you new here?

comment:6 Changed 9 years ago by timmywil

The purpose of the jQuery expando is to keep track of unique events and data. Yes, this means that different versions of jQuery can be attaching these items. Nevertheless, as I said, using more than one version of jQuery is fine, but the way you were mixing them has never been supported.

comment:7 Changed 9 years ago by Robert Katić

timmywil, please consults yourself with John or Dave on this.

comment:8 Changed 9 years ago by timmywil

very well. I've been wrong before. I'll have Dave look at the ticket.

comment:9 in reply to:  8 Changed 9 years ago by Robert Katić

Thanks.

A note: fixing #9023 would fix this bug too.

Note: See TracTickets for help on using tickets.