unscrollbar was deleting text and doubling content#13
Conversation
…ing except text nodes, but including children of children. So all text was missing while other elements where doubled.
…got attached to the root pane.
The jQuery documentation says: "To avoid memory leaks, jQuery removes other constructs such as data and event handlers from the child elements before removing the elements themselves."
|
Just got bitten by this too: |
|
I don't have anything in mind, but I think .children() does not copy text nodes. That's why I use .content(). Let me if I miss something. |
|
You are right of course: you need to use |
… by wagich. Revert "In case of nested scrollbar-panes the content of all scrollbar-panes got attached to the root pane." This reverts commit d80ac1d.
|
You are right. Your approach should fix the issue and looks a lot cleaner. I pushed the changes to my repository. |
The unscrollbar function wasn't working correctly. It fetched everything except text nodes, but including children of children. So all text was missing while other elements where doubled.