Event: missing

From Turn.js Documentation
Revision as of 23:38, 25 November 2012 by Emmanuel (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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