molipha
unread,Oct 7, 2012, 12:44:27 PM10/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mootool...@googlegroups.com
function (page, dest)
$$(dest).set('load',
{
url: page,
method: 'get' ,
onComplete: function(){
linkadjuster.A(dest + " "); //linkadjuster adds click events to the loaded page's <a> tags
}
}
).load();
},
This function is called...
- when the page is first loaded, it loads initial content into div id="a"
- when a link is clicked, it loads the href into div id="b"
When the page first loads, no problem.
When the first link is clicked, no problem.
When the second link is clicked (or the same link clicked again), onComplete fires twice
When the nth link is clicked, onComplete fires n times.
So somehow each successive event is being added to a chain of prior events and they all fire.
Anyone know what is going on?