Skip to content
Browse files

Fixed SC.ContentValueSupport bug where only one content is updated

  • Loading branch information...
1 parent 246fca8 commit 37104559422e04d2ada82400e0d2f249d5a76588 James Chao committed Sep 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 frameworks/foundation/mixins/content_value_support.js
View
5 frameworks/foundation/mixins/content_value_support.js
@@ -127,7 +127,10 @@ SC.ContentValueSupport = {
var contentKey;
for(contentKey in contentKeys) {
- if(key === '*' || key === this.getDelegateProperty(contentKey, this, this.get('displayDelegate'), contentKeys)) return this.updatePropertyFromContent(contentKeys[contentKey], key, contentKey, target);
+ if(key === '*' || key === this.getDelegateProperty(contentKey, this, this.get('displayDelegate'), contentKeys)) {
+ this.updatePropertyFromContent(contentKeys[contentKey], key, contentKey, target);
+ }
+ return this;
}
}

0 comments on commit 3710455

Please sign in to comment.
Something went wrong with that request. Please try again.