Skip to content

Commit 5a4295b

Browse files
author
Nathaniel Blackburn
committed
Cleanup
1 parent 3839dd7 commit 5a4295b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intro.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@
16721672
return this;
16731673
},
16741674
addStep: function(options) {
1675-
if (!this._options.hasOwnProperty('steps')) {
1675+
if (!this._options.steps) {
16761676
this._options.steps = [];
16771677
}
16781678

@@ -1683,7 +1683,7 @@
16831683
return this;
16841684
},
16851685
addSteps: function(steps) {
1686-
if (!steps.hasOwnProperty('length')) return;
1686+
if (!steps.length) return;
16871687

16881688
for(var index = 0; index < steps.length; index++) {
16891689
this.addStep(steps[index]);

0 commit comments

Comments
 (0)