mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
event: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153
Squashed commit of the following: commit5935a362c7Author: Andrew Plummer <plummer.andrew@gmail.com> Date: Fri Feb 1 02:40:42 2013 +0900 Using "hasOwnProperty" to check for direct properties "type" and "namespace" on events before triggering. (cherry picked from commitf005af54e4)
This commit is contained in:
committed by
Corey Frang
parent
d3a2ef7cfe
commit
d654914fd0
@@ -202,8 +202,8 @@ jQuery.event = {
|
||||
|
||||
var i, cur, tmp, bubbleType, ontype, handle, special,
|
||||
eventPath = [ elem || document ],
|
||||
type = event.type || event,
|
||||
namespaces = event.namespace ? event.namespace.split(".") : [];
|
||||
type = core_hasOwn.call( event, "type" ) ? event.type : event,
|
||||
namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];
|
||||
|
||||
cur = tmp = elem = elem || document;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user