mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix #12739. Keep namespace when triggering with an Event. Close gh-972.
This commit is contained in:
committed by
Dave Methvin
parent
b386080798
commit
c6cf30a56e
@@ -212,7 +212,7 @@ jQuery.event = {
|
||||
// Event object or event type
|
||||
var cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType,
|
||||
type = event.type || event,
|
||||
namespaces = [];
|
||||
namespaces = event.namespace ? event.namespace.split(".") : [];
|
||||
|
||||
// focus/blur morphs to focusin/out; ensure we're not firing them right now
|
||||
if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
|
||||
|
||||
Reference in New Issue
Block a user