mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 13:55:34 -05:00
Fix #10717, .trigger("load") on images can't bubble to window.
This means no manually triggered event named "load" can bubble, so avoid that name for delegated custom events.
This commit is contained in:
@@ -566,6 +566,11 @@ jQuery.event = {
|
||||
setup: jQuery.bindReady
|
||||
},
|
||||
|
||||
load: {
|
||||
// Prevent triggered image.load events from bubbling to window.load
|
||||
noBubble: true
|
||||
},
|
||||
|
||||
focus: {
|
||||
delegateType: "focusin",
|
||||
noBubble: true
|
||||
|
||||
Reference in New Issue
Block a user