Skip to content

Commit

Permalink
Better syntax and typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
L8D committed Aug 18, 2013
1 parent f73d9d1 commit 8b9719e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/whip.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Context
get: (ident) ->
if ident of @scope
@scope[ident]
else if @parent isnt undefined
else if @parent?
@parent.get ident

# #### Set
Expand All @@ -33,7 +33,7 @@ class Context
#
# This method is only used by the core library function `def`.
set: (ident, value) ->
if @parnet is undefined
if @parent is undefined
@scope[ident] = value
else
@parent.set ident, value
Expand Down

0 comments on commit 8b9719e

Please sign in to comment.