From 8a25c3c7d46f0aa9295df8e46d3ce98ba92d14db Mon Sep 17 00:00:00 2001 From: Steven Glick Date: Fri, 21 Jul 2017 14:04:53 -0400 Subject: [PATCH 1/2] Fix null description error --- lib/jquery.stepy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jquery.stepy.js b/lib/jquery.stepy.js index 73dd9be..91c2e0f 100755 --- a/lib/jquery.stepy.js +++ b/lib/jquery.stepy.js @@ -179,7 +179,7 @@ if (this.stepyOptions.description) { var description = methods._description.call(this, step); - if (description.length) { + if (description != null && description.length) { head.append(description); } } From 6ebf2c51ff70492cafffcf54a563e59cb36ccc87 Mon Sep 17 00:00:00 2001 From: Steven Glick Date: Sat, 22 Jul 2017 18:20:37 -0400 Subject: [PATCH 2/2] use strict comparison with undefined --- lib/jquery.stepy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jquery.stepy.js b/lib/jquery.stepy.js index 91c2e0f..332c6a3 100755 --- a/lib/jquery.stepy.js +++ b/lib/jquery.stepy.js @@ -179,7 +179,7 @@ if (this.stepyOptions.description) { var description = methods._description.call(this, step); - if (description != null && description.length) { + if (description !== undefined && description.length) { head.append(description); } }