On Mon, Jan 30, 2012 at 12:15 PM, Greg Donald <gdon...@gmail.com> wrote:
> $.each($('tr[class=click]'), function(i, obj) { > $(obj).click(function() { > Android.clickContact($(obj).attr('id')); > $(obj).bind('vmousedown', function() { > $(obj).css("background-color", '#f00'); > }); > $(obj).bind('vmouseup', function() { > $(obj).css("background-color", 'transparent'); > }); > }); > }); And that's wrong, should actually be: $.each($('tr[class=click]'), function(i, obj) { $(obj).click(function() { Android.clickContact($(obj).attr('id')); }); $(obj).bind('vmousedown', function() { $(obj).css("background-color", '#f00'); }); $(obj).bind('vmouseup', function() { $(obj).css("background-color", 'transparent'); }); }); Realized it just now when I started seeing some "double clicks" in Android. -- Greg Donald -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en