Permalink
Browse files

Minor bug fix for SC.Checkbox with no title

  • Loading branch information...
wagenet committed Jun 9, 2011
1 parent b00f012 commit b539b3c15aec391bd6f5763ceb78e601f01857ea
Showing with 2 additions and 1 deletion.
  1. +2 −1 frameworks/core_foundation/mixins/template_helpers/checkbox_support.js
@@ -16,7 +16,8 @@ SC.Checkbox = SC.TemplateView.extend(
value: null,
displayTitle: function() {
- return SC.String.loc(this.get('title'));
+ var title = this.get('title');
+ return title ? SC.String.loc(title) : null;
}.property('title').cacheable(),
classNames: ['sc-checkbox'],

0 comments on commit b539b3c

Please sign in to comment.