File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 177
177
* @method _nextStep
178
178
*/
179
179
function _nextStep ( ) {
180
- if ( typeof ( this . _introBeforeChangeCallback ) !== 'undefined' ) {
181
- this . _introBeforeChangeCallback . call ( this , this . _targetElement . element ) ;
182
- }
183
-
184
180
if ( typeof ( this . _currentStep ) === 'undefined' ) {
185
181
this . _currentStep = 0 ;
186
182
} else {
197
193
return ;
198
194
}
199
195
200
- _showElement . call ( this , this . _introItems [ this . _currentStep ] ) ;
196
+ var nextStep = this . _introItems [ this . _currentStep ] ;
197
+ if ( typeof ( this . _introBeforeChangeCallback ) !== 'undefined' ) {
198
+ this . _introBeforeChangeCallback . call ( this , nextStep . element ) ;
199
+ }
200
+
201
+ _showElement . call ( this , nextStep ) ;
201
202
}
202
203
203
204
/**
211
212
return false ;
212
213
}
213
214
215
+ var nextStep = this . _introItems [ -- this . _currentStep ] ;
214
216
if ( typeof ( this . _introBeforeChangeCallback ) !== 'undefined' ) {
215
- this . _introBeforeChangeCallback . call ( this , this . _targetElement . element ) ;
217
+ this . _introBeforeChangeCallback . call ( this , nextStep . element ) ;
216
218
}
217
219
218
- _showElement . call ( this , this . _introItems [ -- this . _currentStep ] ) ;
220
+ _showElement . call ( this , nextStep ) ;
219
221
}
220
222
221
223
/**
You can’t perform that action at this time.
0 commit comments