From c05d17a40b11192e91571f1b26a04019ddd4353b Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Mon, 13 Jun 2022 14:58:32 -0500 Subject: [PATCH] docs: fixed typos in note for upgrading plugins --- UPGRADING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 2c69cf4..f6cbe7b 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -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); }; ```