MCPcopy
hub / github.com/impress/impress.js / execPreStepLeavePlugins

Function execPreStepLeavePlugins

js/impress.js:903–917  ·  view source on GitHub ↗
( event )

Source from the content-addressed store, hash-verified

901
902 // Called at beginning of goto(), to execute all preStepLeave plugins.
903 var execPreStepLeavePlugins = function( event ) { //jshint ignore:line
904 for ( var i = 0; i < preStepLeavePlugins.length; i++ ) {
905 var thisLevel = preStepLeavePlugins[ i ];
906 if ( thisLevel !== undefined ) {
907 for ( var j = 0; j < thisLevel.length; j++ ) {
908 if ( thisLevel[ j ]( event ) === false ) {
909
910 // If a plugin returns false, the stepleave event (and related transition)
911 // is aborted
912 return false;
913 }
914 }
915 }
916 }
917 };
918
919} )( document, window );
920

Callers 2

gotoFunction · 0.70
swipeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected