[wp-trac] [WordPress Trac] #19189: thickbox.js .trigger("unload") causes conflicts
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 25 10:25:27 UTC 2011
#19189: thickbox.js .trigger("unload") causes conflicts
----------------------------+---------------------
Reporter: ocean90 | Owner: azaozz
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.3
Component: Administration | Version: 3.3
Severity: major | Resolution: fixed
Keywords: has-patch |
----------------------------+---------------------
Comment (by GaryJ):
The equivalent code to azaozz's snippet, for jQuery 1.7+, using a
delegated event (as `#TB_window` doesn't exist at the time the handler is
being attached, as you pointed out) would be:
{{{
jQuery(document).on('unload', '#TB_window', function(e){
console.log(e);
});
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19189#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list