From: Dan Allen Date: Tue, 27 Mar 2018 07:01:16 +0000 (-0600) Subject: consolidate the from value resolution in the find function X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f9a838e703d46e4f3acec9b9a6b8ea517253b9ef;p=working%2Feg-antora.git consolidate the from value resolution in the find function --- diff --git a/src/js/01-navigation.js b/src/js/01-navigation.js index 0d0ad0a..101a2a6 100644 --- a/src/js/01-navigation.js +++ b/src/js/01-navigation.js @@ -140,7 +140,6 @@ } function find (selector, from) { - from = from || document - return [].slice.call(from.querySelectorAll(selector)) + return [].slice.call((from || document).querySelectorAll(selector)) } })()