From df0e598e38081d088e6a5499a9d616b29b12c757 Mon Sep 17 00:00:00 2001 From: Joe DF <3848219+joedf@users.noreply.github.com> Date: Sun, 29 May 2022 21:38:38 -0400 Subject: [PATCH] fix typo --- src/navigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navigator.js b/src/navigator.js index d6a7032d..06a218ab 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -62,8 +62,8 @@ $.Navigator = function( options ){ $.console.warn("Given option.id for Navigator was ignored since option.element was provided and is being used instead."); } else { // Don't overwrite the element's id if it has one already - if ( option.element.id ) { - options.id = option.element.id; + if ( options.element.id ) { + options.id = options.element.id; } else { options.id = 'navigator-' + $.now(); }