Skip to content

Commit

Permalink
update readme, add format doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bredele committed Dec 31, 2013
1 parent 3a13c5f commit ce1dd87
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ store.compute('id', function(){
the new property.


### .format(name, fn)

Format an attribute output in Store.

```js
store.format('nickname', function(val) {
return 'hello ' + val;
});

store.get('nickname'); //hello bredele
```

### .reset(data)

Reset store with `data` (Object or Array).
Expand Down

0 comments on commit ce1dd87

Please sign in to comment.