Skip to content

Commit

Permalink
added contra's fix instead as it is cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
leadVisionary committed May 7, 2012
1 parent 8307947 commit 04ec92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/archivist/models/Archive.coffee
Expand Up @@ -14,7 +14,7 @@ class Archive

update: (id, data) ->
toUpdate = @find(id)
toUpdate.setProperty(key, value) for own key, value of data when ((k for own k of toUpdate).length isnt 0)
toUpdate.setProperty(key, value) for own key, value of data when Object.keys(toUpdate).length isnt 0

return toUpdate

Expand Down

0 comments on commit 04ec92f

Please sign in to comment.