Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorttable making multiples eventListeners #14

Open
dfprado63 opened this issue Sep 21, 2016 · 0 comments
Open

Sorttable making multiples eventListeners #14

dfprado63 opened this issue Sep 21, 2016 · 0 comments

Comments

@dfprado63
Copy link

dfprado63 commented Sep 21, 2016

Hi, Stuart Langridge!
First, thanks for sorttable! It's amazing sort script I've found!

Now, in some of my tables I get multiple eventListeners. This issue make my tables to sort only in a one way. So, I change a little the dean_addEvent(...) to "fix" my issue.

This was my change:

function dean_addEvent(element,type,handler) {
   if(element.getAttribute("event")!="true") {
       if() {
           ...
        } else {
           ...
        }
        element.setAttribute("event","true");
   }
}

Hope this can help others. Kind regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant