Method: destroy: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
</pre>
</pre>


==Zoom Method==
==See also==
[[Zoom method: destroy|Zoom method: destroy]]
[[Zoom Method: destroy|Zoom Method: destroy]]
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>

Revision as of 01:11, 9 July 2012

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.

Example:

$("#flipbook").turn("destroy");


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

$("#flipbook").turn("destroy").remove();

See also

Zoom Method: destroy <yambe:breadcrumb>Turn Methods</yambe:breadcrumb>