fix the type setting

This commit is contained in:
Damien Churchill 2008-08-10 22:32:07 +00:00
parent 8e45e77c74
commit d89d4f7e38
1 changed files with 3 additions and 3 deletions

View File

@ -774,11 +774,11 @@ Deluge.Widgets.GenericPreferences = new Class({
this.changed.each(function(value, key) {
var type = $type(this.original[key]);
if (type == 'number') {
changed[key] = value.toFloat();
changed[key] = Number(value);
} else if (type == 'string') {
changed[key] = value.toString();
changed[key] = String(value);
} else if (type == 'boolean') {
changed[key] = value.toBoolean();
changed[key] = Boolean(value);
}
}, this);
return changed;