Passing instance through onModulesLoaded

This commit is contained in:
Francisco Hodge 2020-09-02 11:09:45 -04:00
parent 71b49a51e3
commit 139689cfa2
3 changed files with 13 additions and 5 deletions

14
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "simple-keyboard",
"version": "2.29.109",
"version": "2.29.110",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -11902,7 +11902,11 @@
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz",
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
"dev": true,
"optional": true
"optional": true,
"requires": {
"bindings": "^1.5.0",
"nan": "^2.12.1"
}
},
"html-encoding-sniffer": {
"version": "1.0.2",
@ -21224,7 +21228,11 @@
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz",
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
"dev": true,
"optional": true
"optional": true,
"requires": {
"bindings": "^1.5.0",
"nan": "^2.12.1"
}
},
"import-local": {
"version": "2.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "simple-keyboard",
"version": "2.29.109",
"version": "2.29.110",
"description": "On-screen Javascript Virtual Keyboard",
"main": "build/index.js",
"types": "build/index.d.ts",

View File

@ -1066,7 +1066,7 @@ class SimpleKeyboard {
*/
onModulesLoaded() {
if (typeof this.options.onModulesLoaded === "function")
this.options.onModulesLoaded();
this.options.onModulesLoaded(this);
}
/**