From 12c149ca66809f62cb8da1fdfed044dce506ed28 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Wed, 24 Mar 2021 23:55:53 -0400 Subject: [PATCH] Return instance on beforeRender, beforeFirstRender --- src/lib/components/Keyboard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Keyboard.ts b/src/lib/components/Keyboard.ts index a5d0636e..aae9c614 100644 --- a/src/lib/components/Keyboard.ts +++ b/src/lib/components/Keyboard.ts @@ -1336,7 +1336,7 @@ class SimpleKeyboard { } if (typeof this.options.beforeFirstRender === "function") - this.options.beforeFirstRender(); + this.options.beforeFirstRender(this); /** * Notify about PointerEvents usage @@ -1369,7 +1369,7 @@ class SimpleKeyboard { */ beforeRender() { if (typeof this.options.beforeRender === "function") - this.options.beforeRender(); + this.options.beforeRender(this); } /**