Method: is: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>") |
No edit summary |
||
| Line 1: | Line 1: | ||
Detects if a selector has an instance of turn.js. | |||
{| class="wikitable" | |||
|- | |||
! | ''This method does not have parameters.'' | |||
|} | |||
Example: | |||
<pre class="javascript"> | |||
if (!$("#flipbook").turn("is")) { | |||
// Create a new flipbook | |||
$("#flipbook").turn(); | |||
} | |||
</pre> | |||
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb> | <yambe:breadcrumb>Turn Methods</yambe:breadcrumb> | ||
Revision as of 16:33, 6 July 2012
Detects if a selector has an instance of turn.js.
| This method does not have parameters. |
|---|
Example:
if (!$("#flipbook").turn("is")) {
// Create a new flipbook
$("#flipbook").turn();
}
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>