$("a:jqmData(taphold='true')").bind("vmousedown vmouseup", function(event) {
event.preventDefault();
event.stopImmediatePropagation();
The event.preventDefault();
and event.stopImmediatePropagation();
used in the above piece of code, refer to the vmousedown
and vmouseup
events and not to every event which is bound to the selected element(s).
This means that the default behaviour for the click
event still exists. So when you click the remove button, the click event is triggered and that's why the pop up closes immediately.
I hope this helps.