Skip to content

Commit 362645c

Browse files
committed
Merge pull request #2 from Alexandre-io/fix-codacy-err
Add&Fix Codacy & Release 0.4.0
2 parents 65d466c + ee3b7f7 commit 362645c

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# introduction.js [![Build Status](https://travis-ci.org/Alexandre-io/introduction.js.svg)](https://travis-ci.org/Alexandre-io/introduction.js)
1+
# introduction.js [![Build Status](https://travis-ci.org/Alexandre-io/introduction.js.svg)](https://travis-ci.org/Alexandre-io/introduction.js) [![Codacy Badge](https://api.codacy.com/project/badge/grade/b39eadeb3b9346bc85ba05e42e5f6739)](https://www.codacy.com/app/alexandre_io/introduction-js)
22
Introductions for websites to guide step-by-step your users.
33

44
Was inspired from [intro.js](https://github.com/usablica/intro.js) and [angular-intro.js](https://github.com/mendhak/angular-intro.js)

dist/introduction.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/introduction.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "introduction.js",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Introductions for websites to guide step-by-step your users.",
55
"main": ["src/introduction.js", "src/introduction.angular.js", "src/introduction.css"],
66
"scripts": {

src/introduction.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ tr.introjs-showElement > th {
121121
width: 20px;
122122
height: 20px;
123123
line-height: 20px;
124+
box-sizing: border-box;
124125
border: 3px solid white;
125126
border-radius: 50%;
126127
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ff3019', endColorstr='#cf0404', GradientType=0);

src/introduction.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,9 @@
721721
function _setHelperLayerPosition(helperLayer) {
722722
if (helperLayer) {
723723
//prevent error when `this._currentStep` in undefined
724-
if (!this._introItems[this._currentStep]) return;
724+
if (!this._introItems[this._currentStep]) {
725+
return;
726+
}
725727

726728
var currentElement = this._introItems[this._currentStep],
727729
elementPosition = _getOffset(currentElement.element),
@@ -962,7 +964,7 @@
962964
if (!self._options.showSkipButton && self._introItems.length - 1 !== self._currentStep && typeof(self._introExitCallback) === 'function') {
963965
self._introExitCallback.call(self);
964966
}
965-
if (self._introItems.length - 1 != self._currentStep) {
967+
if (self._introItems.length - 1 !== self._currentStep) {
966968
_nextStep.call(self);
967969
}
968970
else if (!self._options.showSkipButton) {

0 commit comments

Comments
 (0)