Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Better use extend than default.
Browse files Browse the repository at this point in the history
  • Loading branch information
hajoeichler committed Jun 16, 2014
1 parent 1ec2831 commit d283430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coffee/utils/product-utils.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ buildSetAttributeAction = (diffed_value, old_variant, attribute, sameForAllAttri
# LText
attrib = _.find old_variant.attributes, (attrib) ->
attrib.name is attribute.name
text = _.defaults attrib?.value, {}
text = _.extend {}, attrib?.value
_.each diffed_value, (localValue, lang) ->
text[lang] = helper.getDeltaValue(localValue)
action.value = text
Expand Down

1 comment on commit d283430

@emmenko
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.