vitch/jScrollPane — Issue #132: Error when destroying scrollpane after element has been removed from document
Author: cmwelsh
Created: 2012-02-21 20:00:39+00:00
State: open

If you try to destroy the scrollpane after the element has been removed from the document, it raises an exception on IE8.

The lines that cause the problem are:

var currentY = contentPositionY(),
currentX = contentPositionX();

I would make a note about this in the source code, destroy is known to fail if the element has already been removed from the document.