I am using the following for a double-tap/single tap of a DOM element.
$(selector).doubletap(
/** doubletap-dblclick callback */
function(event){
var $this = $(event.currentTarget);
},
/** touch-click callback (touch) */
function(event){
doSingleClick(this)
},
/** doubletap-dblclick delay (default is 500 ms) */
400
);
Another function I call from the above :
function doSingleClick(but) {
var $but = $(but);
if($but.closest("#domElementId").length < 1)
return;
//"I have more code here to handle the if statement"
}
The doSingleClick function never gets past the return b/c the value of $but never gets correctly defined. My assumption is that I am not passing parameters correctly. Where is my issue?