Trim input values before localStoring them.

This commit is contained in:
Nicolas Stepien 2012-03-08 20:14:16 +01:00
parent d7b6b0823a
commit 543caa37d4
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@
return conf[this.name] = this.checked;
},
value: function() {
$.set(this.name, this.value);
$.set(this.name, this.value.trim());
return conf[this.name] = this.value;
}
},

View File

@ -313,7 +313,7 @@ $.extend $,
$.set @name, @checked
conf[@name] = @checked
value: ->
$.set @name, @value
$.set @name, @value.trim()
conf[@name] = @value
addStyle: (css) ->
style = $.el 'style',