Skip to content

Commit

Permalink
Merge pull request GoogleChromeLabs#266 from sqs/patch-1
Browse files Browse the repository at this point in the history
Fix docs: instanceOf -> instanceof, add commas, etc.
  • Loading branch information
surma authored Apr 20, 2019
2 parents 5d1932c + b4b7161 commit 9517223
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ Each function parameter and return value is given to _all_ registered transfer h

```js
Comlink.transferHandlers.set("EVENT", {
canHandle: obj => obj instanceOf Event,
canHandle: obj => obj instanceof Event,
serialize: ev => {
return {
return [{
target: {
id: ev.target.id
classList: [...ev.target.classList]
}
};
}
deserialize: obj => obj
}, []];
},
deserialize: obj => obj,
});
```

Expand Down

0 comments on commit 9517223

Please sign in to comment.