Skip to content

Commit

Permalink
Updated README with suppressWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Snugug committed Oct 21, 2014
1 parent e0a50f8 commit 63c7ce9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The first available set of helpers, `a11y.state` is a collection of functions fo
* `a11y.state.toggle(element, state)` - This will toggle the value of `aria-{{state}}` between `true` and `false`, provided that the initial value of the state is not set to a non-boolean (for instance, `grammar` for `aria-invalid`).
* `a11y.state.remove(element, state)` - This will either remove the `aria-{{state}}` attribute completely if that state can be set to `undefined`, or will set the state to `false` if it cannot be.

`a11y.state` will provide warnings and throw errors to help provide information about what is going on, should they come up. To globally suppress warnings and errors (for instance, in production), set `a11y.state.suppressWarnings = true`.

## License

The MIT License (MIT)
Expand Down

0 comments on commit 63c7ce9

Please sign in to comment.