Skip to content

Commit 9a291af

Browse files
author
Vlad Balin
committed
removed Boolean link class
Model's attribute could be boolean too. We need it to work with toggle.
1 parent 1fe0204 commit 9a291af

File tree

4 files changed

+14
-42
lines changed

4 files changed

+14
-42
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,9 @@ It adds following helpers:
189189

190190
All links supports following additional methods:
191191
- `link.set( x )` working the same as `link.requestChanges( x )`
192-
- `link.fset( x )`, returning the function which invokes `link.set( x )` (to be used in click handlers)
193192

194193
Boolean links adds following methods:
195194
- `link.toggle()` works the same as `link.requestChanges( !link.value )`
196-
- `link.ftoggle()` return the function which invokes `link.toggle()`
197-
198-
There are direct methods in `Model` and `Collection` to create click handlers:
199-
- `model.fset( ... )` creates function which will invoke `model.set( ... )`
200-
- `collection.ftoggle( model )` creates function invoking `toggle`.
201195

202196
Link received through component props can be linked with state member using
203197
the following declaration:

nestedreact.js

Lines changed: 6 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)