Skip to content

Commit

Permalink
fix(ios): make removeAllListeners accessible from javascript (#7566)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jul 17, 2024
1 parent e06648f commit 388a822
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/Capacitor/Capacitor/JSExport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ internal class JSExport {
t.addListener = function(eventName, callback) {
return w.Capacitor.addListener('\(plugin.jsName)', eventName, callback);
}
t.removeAllListeners = function() {
return w.Capacitor.nativePromise('\(plugin.jsName)', 'removeAllListeners');
}
""")

for method in plugin.pluginMethods {
Expand Down

0 comments on commit 388a822

Please sign in to comment.