farinspace/jquery.tableScroll — pull request #8 by brushbox (2011-12-14 04:41:20+00:00)
Title: Allow jQuery.tableScroll to be re-applied without further wrapping.

Prior to this change if this plugin were re-applied the table would end up being nested further and further within wrapper divs. This caused issues when trying to resize the table in relation to the window (e.g in a jQuery(window).resize(...) event handler. The visible effect was that shrinking the table appeared to work - but growing it didn't (as tested in safari).

This change checks whether the table is already wrapped and uses the existing wrapper, if there is one, rather than making a new one each time.

I've tested the change on Safari 5.1.1 (Mac Lion), Firefox 6.0.2 (Mac Lion), and Internet Explorer 8.0.6001.18702.