Ticket #11660 (closed bug: invalid)
.live() vs .on()
| Reported by: | david@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I have a scenario where I have 3 google maps all in separate hidden divs. When the associated tab is clicked, the map is displayed and I need to call the 'resize' event to ensure the google map renders correctly (see http://stackoverflow.com/questions/4528490/google-map-v3-off-center-in-hidden-div).
Using the above solution worked fine. However, I took a look at the documentation for .live() and it said that it was deprecated in favour for .on(). When I used .on() the event was called but the google map issue was not resolved. If I use .live() it works.
This was the case for Firefox (11), Chrome (18.0.1025.165) and Safari (5.1.5). I have not tested in IE.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Please use the forums for support.