function Signal.DisconnectAll(A)A._handlerListHead=false if A.connectionsChanged then A.connectionsChanged:Fire(-A.totalConnections)A.connectionsChanged:Destroy()A.connectionsChanged=nil A.totalConnections=0 end end Signal.Destroy=Signal.DisconnectAll Signal.destroy=Signal.DisconnectAll

function Signal:DisconnectAll()
	self._handlerListHead = false

    if self.connectionsChanged then
		self.connectionsChanged:Fire(-self.totalConnections)
		self.connectionsChanged:Destroy()
		self.connectionsChanged = nil
		self.totalConnections = 0
	end
end
Signal.Destroy = Signal.DisconnectAll
Signal.destroy = Signal.DisconnectAll
