Hi,
how is that possible that call to the alert function changes behavior of a js script? Something like that:
function add_token (item) {
var li_data = $.data(item.get(0), "tokeninput");
works but this:
function add_token (item) {
alert('a');
var li_data = $.data(item.get(0), "tokeninput");
doesn't - I get following error in firebug: li_data is undefined jquery.tokeninput.js Line 336 (adding alert call is the only change)
(as you can see I'm playing with Tokenizing Autocomplete jQuery plugin - http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/ )
Now that's something that bugs me. Can someone explain to me how is that even possible?
UPDATE: I tried using Chrome instead of Firefox and this particular problem doesn't appear. So now what? It should be considered some kind of a bug in FF or is there something else about this that I'm not aware of?