From f9a838e703d46e4f3acec9b9a6b8ea517253b9ef Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 27 Mar 2018 01:01:16 -0600 Subject: [PATCH] consolidate the from value resolution in the find function --- src/js/01-navigation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)) } })() -- 2.11.0