Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

SC.ContentValueSupport only works with one content key #831

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+4 −1
Split
@@ -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;
}
}