Skip to content

Commit

Permalink
Modified behaivour of dict definition
Browse files Browse the repository at this point in the history
Dictionary definition is now much more simple, the ':'s are
unnessecary.
  • Loading branch information
L8D committed Aug 18, 2013
1 parent 8b9719e commit 9ebea26
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/whip.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ objectize = (input, object = {}, key = true) ->
token = input.shift()
if token is '}'
categorize object
else if token is ':'
objectize input, object, false
else if key
object[categorize(token).value] = objectize input, object
object[categorize(token).value] = objectize input, object, false
objectize input, object, true
else
if token is '('
Expand Down

0 comments on commit 9ebea26

Please sign in to comment.