Skip to content

Commit 03c5d83

Browse files
committed
Merge pull request #241 from sabob/master
fix docs grunt build + checkbox can bind on checked and name
2 parents 8cd0c30 + 1fcc38d commit 03c5d83

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/edge/Two-way binding.md.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ Checkboxes may also be bound by the `name` attribute, which will result in the v
4343

4444
If `colors` is an array, `['Red', 'Yellow', 'Green', 'Blue']`, then checking the first box will result in `selected` becoming `['Red']`. Checking the third box will result in `selected` becoming `['Red', 'Green']`. The array may also be updated from code using `set` or any of the array modification methods available to Ractive, and the checkboxes will be updated to reflect the contents of the array in the Ractive viewmodel.
4545

46-
**Note** that checkboxes may be bound by either `checked` or `name` but not both.
46+
**Note** that checkboxes with both a `checked` and `name` binding will *only* bind on `checked`, not both. The `name` binding will be treated
47+
as a normal mustache variable.
4748

4849
### Radios
4950

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "docs.ractivejs.org",
33
"author": "Rich Harris",
4+
"version": "0.8.0",
45
"devDependencies": {
56
"assemble": "~0.4.36",
67
"grunt": "~0.4.2",

0 commit comments

Comments
 (0)