projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d1c1b
)
consolidate the from value resolution in the find function
author
Dan Allen
<dan@opendevise.com>
Tue, 27 Mar 2018 07:01:16 +0000
(
01:01
-0600)
committer
Dan Allen
<dan@opendevise.com>
Tue, 27 Mar 2018 07:01:16 +0000
(
01:01
-0600)
src/js/01-navigation.js
patch
|
blob
|
history
diff --git
a/src/js/01-navigation.js
b/src/js/01-navigation.js
index
0d0ad0a
..
101a2a6
100644
(file)
--- 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))
}
})()