Skip to content

mootool keep event alive for behavior #12

@hongclub

Description

@hongclub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions