Skip to content

Commit

Permalink
Fixes node.js errors
Browse files Browse the repository at this point in the history
  • Loading branch information
olegabr committed Sep 19, 2014
1 parent 28560ed commit eabb32f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hydrate.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ scope = this
if cons == "" && !input.hasOwnProperty("constructor_name")
cons = input.constructor_name
if !cons?
@errorHandler AnonymousConstructorError(input)
@errorHandler new Hydrate.AnonymousConstructorError(input)
unless cons == "Object"
output.__hydrate_cons = cons

Expand Down Expand Up @@ -283,7 +283,7 @@ scope = this
when "function"
klass = klass.name
if klass == ""
@errorHandler new AnonymousConstructorError(klass)
@errorHandler new Hydrate.AnonymousConstructorError(klass)
when "string"
null
else
Expand Down

0 comments on commit eabb32f

Please sign in to comment.