( currentStep, nextStep )
| 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. |