shorter expression in off
This commit is contained in:
parent
7206fa6d5c
commit
b388df798b
@ -420,7 +420,7 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketLogClient
|
|||||||
public func off(event:String) {
|
public func off(event:String) {
|
||||||
SocketLogger.log("Removing handler for event: %@", client: self, args: event)
|
SocketLogger.log("Removing handler for event: %@", client: self, args: event)
|
||||||
|
|
||||||
handlers = ContiguousArray(handlers.filter {$0.event == event ? false : true})
|
handlers = ContiguousArray(handlers.filter {!($0.event == event)})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user