Commit 6b539150 authored by Dave Methvin's avatar Dave Methvin

Fix #13255. Set a default event target for Cordova.

parent 9c4a4285
......@@ -511,6 +511,12 @@ jQuery.event = {
event[ prop ] = originalEvent[ prop ];
}
// Support: Cordova 2.5 (WebKit) (#13255)
// All events should have a target; Cordova deviceready doesn't
if ( !event.target ) {
event.target = document;
}
// Support: Safari 6.0+, Chrome < 28
// Target should not be a text node (#504, #13143)
if ( event.target.nodeType === 3 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment