Event: missing

From Turn.js Documentation
Revision as of 09:05, 7 July 2012 by Emmanuel (Talk | contribs)

Jump to: navigation, search

This event is triggered when some pages are required in the current range.

Argument Type Description
event Object Event Object
pages Array Pages having to be added


$("#flipbook").bind("missing", function(event, pages) {
	for (var i = 0; i < pages.length; i++) {
		$(this).turn("addPage", $("<div />"), pages[i]);

See also

Method: addPage

Main Page > API > Turn Events > Event: missing