diff options
Diffstat (limited to 'share/www/script/futon.js')
-rw-r--r-- | share/www/script/futon.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/www/script/futon.js b/share/www/script/futon.js index f5a81444..1f51bdee 100644 --- a/share/www/script/futon.js +++ b/share/www/script/futon.js @@ -168,7 +168,11 @@ this.set = function(name, value) { lookup(name, function(decl) { - handlers[decl.scope].set(decl.prefix + name, value); + if (value == decl.defaultValue) { + handlers[decl.scope].del(decl.prefix + name); + } else { + handlers[decl.scope].set(decl.prefix + name, value); + } }); } |