We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46300fb commit f551fb1Copy full SHA for f551fb1
src/finput.ts
@@ -90,7 +90,11 @@ class Finput {
90
this.setValue(newValue, false);
91
}
92
93
- public removeListeners() {
+ public destroy() {
94
+ this.removeListeners();
95
+ }
96
+
97
+ private removeListeners() {
98
Object.keys(this.listeners)
99
.forEach((key: string) =>
100
this.listeners[key].element.removeEventListener(key, this.listeners[key].handler));
0 commit comments