mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-04-20 17:26:25 +08:00
Prevent wrapper removal on destroy. Fixes #294
This commit is contained in:
parent
ad1e93c75b
commit
c36acbb5f6
@ -785,7 +785,6 @@ class SimpleKeyboard {
|
|||||||
|
|
||||||
this.recurseButtons(deleteButton);
|
this.recurseButtons(deleteButton);
|
||||||
|
|
||||||
this.buttonElements = null;
|
|
||||||
this.recurseButtons = null;
|
this.recurseButtons = null;
|
||||||
deleteButton = null;
|
deleteButton = null;
|
||||||
|
|
||||||
@ -796,8 +795,10 @@ class SimpleKeyboard {
|
|||||||
this.keyboardDOM.ontouchstart = null;
|
this.keyboardDOM.ontouchstart = null;
|
||||||
this.keyboardDOM.onmousedown = null;
|
this.keyboardDOM.onmousedown = null;
|
||||||
|
|
||||||
this.keyboardDOM.remove();
|
/**
|
||||||
this.keyboardDOM = null;
|
* Clearing keyboard wrapper
|
||||||
|
*/
|
||||||
|
this.clear();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove instance
|
* Remove instance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user