Skip to content

Commit 78ab07f

Browse files
committed
return early when prev not configured
1 parent 1ff1d82 commit 78ab07f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/prev-handler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export function prevHandler(pageIndex) {
55
let ias = this;
66
let prevEl = ias._prevEl || $(ias.options.prev, document.body)[0];
77

8+
if (ias.options.prev === undefined) {
9+
return;
10+
}
11+
812
if (!prevEl) {
913
Assert.warn(Assert.singleElement, ias.options.prev, 'options.prev');
1014

0 commit comments

Comments
 (0)