`jQuery.Event( src )` cannot require `src.target` #3139

dmethvin opened this Issue Jun 2, 2016 · 2 comments


None yet

3 participants

dmethvin commented Jun 2, 2016

If you construct a jQuery.Event( src ) using something that has src.type, the 3.0 code will die if there is not an src.target property. jQuery Mobile uses a pattern where they construct an object and then set properties like target afterwards, which was allowed by 1.x/2.x, so we need to fix this as a regression.

@dmethvin dmethvin added this to the 3.0.0 milestone Jun 2, 2016
@dmethvin dmethvin self-assigned this Jun 2, 2016
dmethvin commented Jun 2, 2016
@dmethvin dmethvin added a commit to dmethvin/jquery that referenced this issue Jun 2, 2016
@dmethvin dmethvin Event: Allow constructing a jQuery.Event without a target
Fixes gh-3139

@dmethvin ah thanks yeah i was having trouble figuring out exactly where this error was coming from

@dmethvin dmethvin closed this in 2df590e Jun 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment