Return instance on beforeRender, beforeFirstRender

This commit is contained in:
Francisco Hodge
2021-03-24 23:55:53 -04:00
parent ac9e2a0b89
commit 12c149ca66
+2 -2
View File
@@ -1336,7 +1336,7 @@ class SimpleKeyboard {
} }
if (typeof this.options.beforeFirstRender === "function") if (typeof this.options.beforeFirstRender === "function")
this.options.beforeFirstRender(); this.options.beforeFirstRender(this);
/** /**
* Notify about PointerEvents usage * Notify about PointerEvents usage
@@ -1369,7 +1369,7 @@ class SimpleKeyboard {
*/ */
beforeRender() { beforeRender() {
if (typeof this.options.beforeRender === "function") if (typeof this.options.beforeRender === "function")
this.options.beforeRender(); this.options.beforeRender(this);
} }
/** /**