Skip to content

Commit

Permalink
Merge branch 'hotfix/0.4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrockwell committed Aug 29, 2016
2 parents 2991f08 + f41f2c4 commit 9b73791
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ person.mergedValues({"CO": "Boulder"});
person.mergedValues(); // {"CO": "Boulder", "KS": "Wichita"}
```

### `.filter`
### `.filter(filterFunction)`

``` javascript
class Person extends Component {
Expand All @@ -189,6 +189,27 @@ person.favoriteNumber("1");
person.favoriteNumber(); // 1
```

### `.then(callback)`

Call a synchronous callback each time a new value is set on the property

``` javascript
class Person extends Component {
initialize() {
this.properties("favoriteNumber").then(this.doSomething);
}

doSomething(value) {
// No returns. Just a simple synchronous callback.
}
}

const person = new Person();

person.favoriteNumber("1");
person.favoriteNumber(); // 1
```

## `.link(linkName, linkConstructor)`

A link creates a method which returns a new instance of the provided `linkConstructor`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mrt",
"version": "0.4.3",
"version": "0.4.4",
"description": "Helps build expressive chained interfaces.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9b73791

Please sign in to comment.