darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

Revert CSS style changes when destroying #121

Closed oporko closed 9 years ago

oporko commented 10 years ago

The destroy method does not revert CSS changes made during init and I had bugs while testing in IE8 because of position: absolute being added to the movables and not being reverted during destroy.

This patch creates a CSSStore object to track the CSS changes and restore the original pre-sly init values on destroy. Lint passes.

darsain commented 10 years ago

Thx, I'll look at it when I have some time :)

darsain commented 9 years ago

Added in 3ea2e89e609b956f20c36b92a0dc1498a4a00f5a.