furf/jquery-ui-touch-punch — Issue #14: this._mouseDownEvent is not defined bug
Author: jboesch
Created: 2011-10-20 15:05:10+00:00
State: open

In the new version of jQuery UI, they have a variable called mouseDownEvent. This needs to be placed inside your _mouseDown function definition. Here is what I did to temporarily fix the bug. After I load in your jquery.ui.touch-punch.js file, I duck punch it to add this variable. Obviously adding this._mouseDownEvent directly into your _mouseDown function would be the fix.

var _old_mouseDown = $.ui.mouse.prototype._mouseDown;
$.ui.mouse.prototype._mouseDown = function(event){
this._mouseDownEvent = event;
return _old_mouseDown.call(this, event);
}

Thanks for a great lib!