From 33b991d072d21aae29be11cc93ed9e6d460d7c1c Mon Sep 17 00:00:00 2001 From: Okal Otieno Date: Fri, 30 Jan 2015 11:56:54 +0300 Subject: [PATCH] Fix docstrings `sel` falls back to `querySelectorAll`, not `querySelector`. `sel1` falls back to `querySelector`. --- src/dommy/core.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dommy/core.clj b/src/dommy/core.clj index 2ea66d6..bee2a06 100644 --- a/src/dommy/core.clj +++ b/src/dommy/core.clj @@ -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) @@ -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)