-
Notifications
You must be signed in to change notification settings - Fork 18
mootool keep event alive for behavior #12
Copy link
Copy link
Closed
Description
Hi,
I have a span element on my page ... test,
i need to addEvent to pay attention this element, so in my mootool js is kind of like this
var mytest = $('test')
test.addEvent('click', function (e, el) {
.... do something
};
whenever i click the , it will do something ...
on my html ... sometimes i need to toggle to remove that and show that
As what i know ... once i remove that , the event tracking is gone ... i think that's the purpose to avoid memory leak, correct?
But in my case, i kind of need to keep that event tracking even though the is gone ... any suggestion? any options in the mootool addEvent to keep it alive?
hongclub
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels