Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added note about `domNode`.

  • Loading branch information...
commit 6725f7b06a7ba1c4717bc1a08079b4a4c832c358 1 parent d07387b
@erikvorhes authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -7,8 +7,8 @@ Not much to say here, but **utility-belt.js** is a simple wrapper for some commo
* Add a class to an element with `Belt.addClass(className, el);`
* Remove a class from an element with `Belt.removeClass(className, el);`
* See whether an element has a certain class with `Belt.hasClass(className, el);`
-* Get all elements that have a certain class with `Belt.getElementsByClassName(className, domNode);`
-* Add an event listener with `Belt.newEventListener(el, evt, callback, capture);` (oh, and `capture` defaults to `false`)
+* Get all elements that have a certain class with `Belt.getElementsByClassName(className, domNode);` (`domNode` defaults to `document`)
+* Add an event listener with `Belt.newEventListener(el, evt, callback, capture);` (`capture` defaults to `false`)
That's it so far.
Please sign in to comment.
Something went wrong with that request. Please try again.