Skip to content

Commit

Permalink
Options.set is checking the wrong argument.
Browse files Browse the repository at this point in the history
I was reading the source and bumped into this.
  • Loading branch information
barraponto committed Jan 12, 2013
1 parent 6aa86b0 commit a649580
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/options.coffee
@@ -1,4 +1,3 @@

exports.Options = class Options
constructor: ->
@host = null
Expand All @@ -13,7 +12,7 @@ exports.Options = class Options
@handshake_timeout = 5000

set: (name, value) ->
switch typeof @[name]
switch typeof @[value]
when 'undefined' then # ignore
when 'number'
@[name] = +value
Expand Down

0 comments on commit a649580

Please sign in to comment.