SiCo wrote:
>
> Thanks in advance for any help you can give this is driving me mad!
>
> I am making a plugin (which basically creates editable field) to learn
> jQuery, the code is here: http://www.sico.co.uk/jquery/jquery.editme.js
>
> The problem I am having is that each function call seems to get called
> multiple times and I don't know why!
>
I think the problem is in this code:
$("a.test").click(function () {
alert("tags");
return false;
});
It is being called each time you click an editme element, creating yet
another binding for every a.test element in the document. You probably
wanted to limit the context using $("a.test", this) and only attach one if
there isn't one already.
--
View this message in context:
http://www.nabble.com/Multiple-Unknown-Invisible-Calls-tf2783676.html#a7778738
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/