Event: fix incorrect test

Which was revealed by 03eaadb131 commit,
also do not try to fix typos in data/jquery version

Cherry-picked from d92310050c
This commit is contained in:
Oleg Gaidarenko
2015-10-12 18:37:04 +03:00
parent 4e3f971866
commit e73a67f2e2
2 changed files with 2 additions and 8 deletions

View File

@@ -3525,7 +3525,7 @@ jQuery.each( {
related = event.relatedTarget,
handleObj = event.handleObj;
// For mouseenter/leave call the handler if related is outside the target.
// For mousenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
event.type = handleObj.origType;