Permalink
Browse files

Vmouse: Fix compatibility issues with jQuery 3.0

  • Loading branch information...
arschmitz committed Jun 27, 2016
1 parent 2bcd3aa commit 6e02375201ec2756c6d853dd7853738805a6142e
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/vmouse.js
View
@@ -44,7 +44,7 @@ var dataPropertyName = "virtualMouseBindings",
virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
mouseEventProps = $.event.props.concat( mouseHookProps ),
mouseEventProps = $.event.props ? $.event.props.concat( mouseHookProps ): mouseHookProps,
activeDocHandlers = {},
resetTimerID = 0,
startX = 0,
@@ -83,7 +83,8 @@ function createVirtualEvent( event, eventType ) {
event.type = eventType;
oe = event.originalEvent;
props = $.event.props;
props = ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
"metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " );
// addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
// https://github.com/jquery/jquery-mobile/issues/3280

0 comments on commit 6e02375

Please sign in to comment.