Code: Select all
$("#" + old_n).on('mousedown', function(evt) {
console.log(old_n);
if($(el).data('clickphase')) return true;
$("#" + $.contextmenu).remove();
$(el).data('served', true);
if(typeof array_of_a[a_index][1] == 'function') {
array_of_a[a_index][1](evt, el);
}
//console.log(array_of_a[a_index]);
//array_of_a[a_index][1](evt, el);
$(el).removeData('served');
});