Skip to content

Commit

Permalink
Adds some documentation to SC.Binding to clarify the issue raised in #…
Browse files Browse the repository at this point in the history
  • Loading branch information
dcporter committed Feb 15, 2014
1 parent 3f91289 commit 9ad4ca0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frameworks/runtime/system/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ SC.EMPTY_PLACEHOLDER = '@@EMPTY@@';
In addition to synchronizing values, bindings can also perform some basic
transforms on values. These transforms can help to make sure the data fed
into one object always meets the expectations of that object regardless of
into one object always meets the expectations of that object, regardless of
what the other object outputs.
To customize a binding, you can use one of the many helper methods defined
Expand All @@ -121,6 +121,11 @@ SC.EMPTY_PLACEHOLDER = '@@EMPTY@@';
`notNull`, `multiple`, `bool`, `not`, `isNull`, `and` (two values only), `or` (two
values only), and `equalTo`. See each method's documentation for a full description.
(Note that transforms are only applied in the forward direction (the 'to' side); values
are applied untransformed to the 'from' side. If the 'from' object has validation
needs, it should own and apply them itself, for example via a read/write calculated
property.)
Adding Custom Transforms
===
Expand Down

0 comments on commit 9ad4ca0

Please sign in to comment.