Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
`sel` falls back to `querySelectorAll`, not `querySelector`. `sel1` falls back to `querySelector`.
  • Loading branch information
okal committed Jan 30, 2015
1 parent 5100fbc commit 33b991d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dommy/core.clj
Expand Up @@ -31,7 +31,7 @@
(defmacro sel1
"Select a single DOM node. Tries to expand to the native selector methods
as defined by `by-id`, `by-class`, and `by-tag`, falling back to
`document.querySelectorAll` when the selector isn't a constant."
`document.querySelector` when the selector isn't a constant."
([data] `(sel1 js/document ~data))
([base data]
(if (utils/constant? data)
Expand All @@ -46,8 +46,8 @@

(defmacro sel
"Same behavior as `sel1`, instead keeping the full array that `by-class`
or `by-tag` expand to. Falls back to `document.querySelector` instead of
`document.querySelectorAll`."
or `by-tag` expand to. Falls back to `document.querySelectorAll` instead of
`document.querySelector`."
([data] `(sel js/document ~data))
([base data]
(if (utils/constant? data)
Expand Down

0 comments on commit 33b991d

Please sign in to comment.