Ignore the event object for handleTextChange

pull/37/head
Gordon Ball 12 years ago
parent 0f7fbc0781
commit 67630b0886

@ -165,12 +165,12 @@ define([
handleKeyDown: function(e) {
if (e.keyCode == 13) {
e.preventDefault();
this.handleTextChange(e);
this.handleTextChange();
}
},
handleTextChange: function(e) {
var text = $(e.target).text().trim();
handleTextChange: function() {
var text = this.$readout.text();
var value = this._validate_text_input(text);
if (isNaN(value)) {
this.$readout.text(this.model.get('value'));

Loading…
Cancel
Save