Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim B committed Oct 9, 2012
1 parent d3d2067 commit 2a727b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/spigg.coffee
Expand Up @@ -15,7 +15,7 @@ class spiggEntity
@data[k] ? @default_val

set: (k, v) ->
@setObject(k) unless v
return @setObject(k) unless v

if Object.keys(@fields).length >= 1
@data[k] = v if @fields[k]
Expand All @@ -26,8 +26,7 @@ class spiggEntity
setObject: (o) ->
for k, v of o
@set(k, v)

@this
@

setUnsafe: (k, v) ->
@data[k] = v
Expand Down

0 comments on commit 2a727b0

Please sign in to comment.