Views
Actions

Method: is

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
Detects if a selector has an instance of turn.js.  
 
Detects if a selector has an instance of turn.js.  
 
  
 
{| class="wikitable"
 
{| class="wikitable"

Latest revision as of 09: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();
}
Main Page > API > Turn Methods > Method: is