Skip to content

Commit 10fab7d

Browse files
committed
Change position of _direction propery
1 parent d878b16 commit 10fab7d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

intro.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@
260260
* @method _nextStep
261261
*/
262262
function _nextStep() {
263+
this._direction = 'forward';
264+
263265
if (typeof (this._currentStep) === 'undefined') {
264266
this._currentStep = 0;
265267
} else {
@@ -281,7 +283,6 @@
281283
this._introBeforeChangeCallback.call(this, nextStep.element);
282284
}
283285

284-
this._direction = 'forward';
285286
_showElement.call(this, nextStep);
286287
}
287288

@@ -292,6 +293,8 @@
292293
* @method _nextStep
293294
*/
294295
function _previousStep() {
296+
this._direction = 'backward';
297+
295298
if (this._currentStep === 0) {
296299
return false;
297300
}
@@ -301,7 +304,6 @@
301304
this._introBeforeChangeCallback.call(this, nextStep.element);
302305
}
303306

304-
this._direction = 'backward';
305307
_showElement.call(this, nextStep);
306308
}
307309

minified/intro.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)