Skip to content

Commit

Permalink
docs: fixed typos in note for upgrading plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jun 13, 2022
1 parent 5d1ad88 commit c05d17a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ Here is a complete list of the underlying changes made:

```diff
// define accepted extensions
Bree.prototype.init = function () {
-Bree.prototype.init = function () {
+Bree.prototype.init = async function () {
if (!this.config.acceptedExtensions.includes('.ts'))
this.config.acceptedExtensions.push('.ts');

- oldInit.bind(this)();
+ // note it is not invoked anymore and we now return it
+ return oldInit.bind(this);
+ return oldInit.call(this);
};
```

Expand Down

0 comments on commit c05d17a

Please sign in to comment.