Skip to content
Browse files

Removed duplicated logic. Template Collection tests pass. The if stat…

…ement is used for the dl test, which will fail without it
  • Loading branch information...
1 parent ca6fd88 commit 6937dcf29fc6bd94c46c660cf104ef97b8b426ff @NicholasBoll NicholasBoll committed Aug 19, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 frameworks/core_foundation/views/template_collection.js
View
6 frameworks/core_foundation/views/template_collection.js
@@ -132,10 +132,8 @@ SC.TemplateCollectionView = SC.TemplateView.extend(
extensions.template = itemViewTemplate;
}
- if (this.get('tagName') === 'ul' || this.get('tagName') === 'ol') {
- extensions.tagName = 'li';
- } else if (this.get('tagName') === 'table' || this.get('tagName') === 'thead' || this.get('tagName') === 'tbody') {
- extensions.tagName = 'tr';
+ if (this.get('itemTagName')) {
+ extensions.tagName = this.get('itemTagName');
}
return itemView.extend(extensions);

0 comments on commit 6937dcf

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