Skip to main content

Bug Tracker

Side navigation

#2292 closed bug (duplicate)

Opened February 07, 2008 12:15PM UTC

Closed February 14, 2009 05:24PM UTC

Last modified March 14, 2012 06:44AM UTC

tablesorter or jQuery? duplicate event handler, possible memory leaks

Reported by: Max_B Owned by: christian
Priority: major Milestone: 1.2.3
Component: plugin Version: 1.2.2
Keywords: tablesorter event clone Cc:
Blocked by: Blocking:
Description

If there is an event handler attached to a row element or any of its children, it is loosen when sorting occurs. Rows are cloned in the process (empty/append).

Then i tried using tablesorter widget to add handle. That the weird side: the event handler is now called several times (as many as there has been sort on the table).

I even tried to hack the plugin to add an unbind widget before sorting. I worked for unbinding on row children events, but not on the row itself.

Those rows have id attribute and that might raise some conflict.

I'm not sure if the same handler is called several times on the same element or if there ares several clones responding to the event and thus memory leaks.

Currently i had to workaround by watching event.timeStamp in the handler and discard duplicate.

Attachments (0)
Change History (4)

Changed February 07, 2008 12:43PM UTC by Max_B comment:1

While posting this bug, I saw 1.2.2! I missed it.

This is corrected in 1.2.2.

Please close this one as duplicate/fixed.

Changed February 08, 2008 04:15PM UTC by paul comment:2

owner: paulchristian

Changed March 14, 2008 04:07PM UTC by paul comment:3

component: uiplugin

Changed February 14, 2009 05:24PM UTC by john comment:4

resolution: → duplicate
status: newclosed