Skip to content
Permalink
Browse files

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

  • Loading branch information...
dmethvin committed May 2, 2013
1 parent 9c4a428 commit 6b5391508e7354076a32375c7f536f8eb91195ee
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/event.js
@@ -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 ) {

0 comments on commit 6b53915

Please sign in to comment.
You can’t perform that action at this time.