Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added labelContent option to Backbone.UI.Label to allow for differing…

… label and value
  • Loading branch information...
commit 9f52be1520fb4b31d41df8cfe11c79ec88f6ca6f 1 parent e28efad
@jcarrig jcarrig authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/js/label.js
View
3  src/js/label.js
@@ -14,8 +14,7 @@
},
render : function() {
- var labelText = this.resolveContent();
-
+ var labelText = this.resolveContent(this.model, this.options.labelContent) || this.options.labelContent;
this._observeModel(this.render);
$(this.el).empty();
Please sign in to comment.
Something went wrong with that request. Please try again.