From 43a859bba955cc6de46b5f4d2ec88d1988c05095 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Sat, 21 Nov 2020 01:44:52 -0500 Subject: [PATCH] Clean up --- src/lib/components/Keyboard.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/lib/components/Keyboard.js b/src/lib/components/Keyboard.js index c920e195..28aa155e 100644 --- a/src/lib/components/Keyboard.js +++ b/src/lib/components/Keyboard.js @@ -1153,24 +1153,10 @@ class SimpleKeyboard { if (Array.isArray(this.options.modules)) { this.options.modules.forEach(KeyboardModule => { const keyboardModule = new KeyboardModule(); - - /* istanbul ignore next */ - if ( - keyboardModule.constructor.name && - keyboardModule.constructor.name !== "Function" - ) { - const classStr = `module-${this.utilities.camelCase( - keyboardModule.constructor.name - )}`; - this.keyboardPluginClasses = - this.keyboardPluginClasses + ` ${classStr}`; - } - keyboardModule.init(this); }); - this.keyboardPluginClasses = - this.keyboardPluginClasses + " modules-loaded"; + this.keyboardPluginClasses = "modules-loaded"; this.render(); this.onModulesLoaded();