Method: destroy: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
(Created page with "<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>")
 
No edit summary
Line 1: Line 1:
Destroys the flipbook. That is, it removes all the pages from the DOM tree and memory as well as event listeners.
{| class="wikitable"
|-
! | ''This method does not have parameters.''
|}
Example:
<pre class="javascript">
$("#flipbook").turn("destroy");
</pre>
You can also remove the container (<tt>#flipbook</tt>), for example:
<pre class="javascript">
$("#flipbook").turn("destroy").remove();
</pre>
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>

Revision as of 16:17, 6 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();


<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>