I am Using YUI3 and having difficulty to find the problem?
Here i have this
YUI().use("modules",function(Y){
function Actionfunction(e){
//doing some stuff
}
Y.delegate("click",Actionfunction, "body","#myid li");
});
And when i click on li items Actionfunction execute once but on second click on same li item or other li item Actionfunction execute twice and so on.
Actionfunction should execute only once on every click on li item.
Got an answer here is the problem
showed the problem zone by commenting in front of syntax.
Q. What was the problem?
A. On every call of contextmenu, Y.delegate
redefine because of that execution increases on click on li item