This commit is contained in:
Feross Aboukhadijeh 2015-05-01 14:17:11 -07:00
parent 1d7912142b
commit 1ec4eaa273

View File

@ -487,4 +487,7 @@ Server.prototype._onWebSocketError = function (socket, err) {
self._onWebSocketClose(socket)
}
function toNumber (x) { return (x = Number(x)) >= 0 ? x : false }
function toNumber (x) {
x = Number(x)
return x >= 0 ? x : false
}