Created by: assembledadam
I'm writing an ajax application that requires the affix plugin to be toggled on and off, depending on whether the page/content as sufficient height to warrant the affix.
The destroy method has allowed me to do this, and I think could be useful to others. It removes the the plugin from the element, stops the events triggering, and removes any styles.
If this is indeed useful to others, the unit test could be fleshed out to ensure the style and event triggering are removed - right now it just checks the plugin was removed.