Skip to content

Commit

Permalink
Removed duplicated logic. Template Collection tests pass. The if stat…
Browse files Browse the repository at this point in the history
…ement is used for the dl test, which will fail without it
  • Loading branch information
NicholasBoll committed Aug 19, 2011
1 parent ca6fd88 commit 6937dcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frameworks/core_foundation/views/template_collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6937dcf

Please sign in to comment.