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

Function onStepLeave

js/impress.js:273–278  ·  view source on GitHub ↗
( currentStep, nextStep )

Source from the content-addressed store, hash-verified

271 // but the event is triggered only if the currentStep is the same as
272 // lastEntered step.
273 var onStepLeave = function( currentStep, nextStep ) {
274 if ( lastEntered === currentStep ) {
275 lib.util.triggerEvent( currentStep, "impress:stepleave", { next: nextStep } );
276 lastEntered = null;
277 }
278 };
279
280 // `initStep` initializes given step element by reading data from its
281 // data attributes and setting correct styles.

Callers 1

gotoFunction · 0.70

Calls 1

nextStepFunction · 0.70

Tested by

no test coverage detected