Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander authored Jun 13, 2016
1 parent 3239eec commit a213fa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ db.transaction('rw', db.friends, function*() {
alert ("My young friends: " + JSON.stringify(youngFriends));

}).catch(e => {
alert(e);
alert(e.stack || e);
});
```
*NOTE: db.transaction() will treat generator functions (function * ) so that it is possible to use `yield` for consuming promises. [Yield can be used outside transactions as well](https://github.com/dfahlander/Dexie.js/wiki/Simplify-with-yield).
Expand Down Expand Up @@ -163,7 +163,7 @@ db.transaction('rw', db.friends, async() => {
alert ("My young friends: " + JSON.stringify(youngFriends));

}).catch(e => {
alert(e);
alert(e.stack || e);
});

```
Expand Down Expand Up @@ -212,7 +212,7 @@ db.transaction('rw', db.friends, async() => {
alert ("My young friends: " + JSON.stringify(youngFriends));

}).catch(e => {
alert(e);
alert(e.stack || e);
});
```
Expand Down

0 comments on commit a213fa8

Please sign in to comment.