Skip to content

Commit

Permalink
Change position of _direction propery
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinm committed Mar 25, 2014
1 parent d878b16 commit 10fab7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@
* @method _nextStep
*/
function _nextStep() {
this._direction = 'forward';

if (typeof (this._currentStep) === 'undefined') {
this._currentStep = 0;
} else {
Expand All @@ -281,7 +283,6 @@
this._introBeforeChangeCallback.call(this, nextStep.element);
}

this._direction = 'forward';
_showElement.call(this, nextStep);
}

Expand All @@ -292,6 +293,8 @@
* @method _nextStep
*/
function _previousStep() {
this._direction = 'backward';

if (this._currentStep === 0) {
return false;
}
Expand All @@ -301,7 +304,6 @@
this._introBeforeChangeCallback.call(this, nextStep.element);
}

this._direction = 'backward';
_showElement.call(this, nextStep);
}

Expand Down
8 changes: 4 additions & 4 deletions minified/intro.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 10fab7d

Please sign in to comment.