Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
christiaanwesterbeek committed Aug 29, 2013
1 parent e797726 commit 5395961
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ boxLabel
--------
For ExtJS < 4.2, if you want to localize boxLabels, you need to add setBoxLabel to be able to localize boxLabels at runtime (already rendered)

Ext.override(Ext.form.field.Checkbox, {
setBoxLabel: function(boxLabel){
var me = this;
Ext.override(Ext.form.field.Checkbox, {
setBoxLabel: function(boxLabel){
var me = this;
me.boxLabel = boxLabel;
if (me.rendered) {
me.boxLabelEl.update(boxLabel);
me.boxLabel = boxLabel;
if (me.rendered) {
me.boxLabelEl.update(boxLabel);
}
}
}
});
});

0 comments on commit 5395961

Please sign in to comment.