Skip to content

Commit

Permalink
Merge pull request #210 from kamilogorek/enum-docs
Browse files Browse the repository at this point in the history
Updated ENUM values docs. FIX #149
  • Loading branch information
lukekarrys committed Oct 30, 2015
2 parents c23194e + 634ac2b commit b0331fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -598,7 +598,10 @@ person.clear()
### toggle `state.toggle('a')`
Shortcut to toggle boolean properties, or cycle through “ENUM” type properties with a `values` array in their definition. Fires `"change"` events, as you would expect from `set()`.
Shortcut to toggle boolean properties, or cycle through array of specified property's `values` (see `values` option section and example below).
When you reach the last available value from given array, `toggle` will go back to the beginning and use first one.
Fires `"change"` events, as you would expect from `set()`.
```javascript
var Person = AmpersandState.extend({
Expand Down

0 comments on commit b0331fa

Please sign in to comment.