Skip to content

Commit 388a822

Browse files
authored
fix(ios): make removeAllListeners accessible from javascript (#7566)
1 parent e06648f commit 388a822

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ios/Capacitor/Capacitor/JSExport.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ internal class JSExport {
6767
t.addListener = function(eventName, callback) {
6868
return w.Capacitor.addListener('\(plugin.jsName)', eventName, callback);
6969
}
70+
t.removeAllListeners = function() {
71+
return w.Capacitor.nativePromise('\(plugin.jsName)', 'removeAllListeners');
72+
}
7073
""")
7174

7275
for method in plugin.pluginMethods {

0 commit comments

Comments
 (0)