[wp-trac] [WordPress Trac] #19189: thickbox.js .trigger("unload") causes conflicts

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 25 17:24:58 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 azaozz):

 Replying to [comment:27 GaryJ]:

 It's a bug. The 'unload' event only exists for 'window'. Think it was used
 before jQuery was force-bubbling events up the DOM so it was more of a
 custom event only on #TB_window, that unfortunately matches the "real"
 unload. Later on other JS staring using it too so now we have to still
 support it...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19189#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list