Method: destroy

From Turn.js Documentation
Revision as of 18:32, 8 July 2012 by Emmanuel (Talk | contribs)

Jump to: navigation, search

Destroys the flipbook. That is, it removes all the pages from the DOM tree and memory as well as event listeners.

This method does not have parameters.



You can also remove the container (#flipbook), for example:


Note: Destroying a flipbook will automatically destroy the zoom viewport if defined.

See also

Destroying the zoom viewport.

Main Page > API > Turn Methods > Method: destroy