1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:17:59 +01:00

made :setlocal work on tabs, not buffer

This commit is contained in:
Martin Stubenschrott
2008-08-13 20:50:39 +00:00
parent 0c11a6b652
commit c49ed07af9
4 changed files with 13 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
var aValue;
if (this.scope & liberator.options.OPTION_SCOPE_LOCAL)
aValue = liberator.buffer.options[this.name];
aValue = liberator.tabs.options[this.name]; // TODO: does that work without has("tabs")?
if ((this.scope & liberator.options.OPTION_SCOPE_GLOBAL) && (aValue == undefined))
aValue = value;
@@ -81,6 +81,7 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
return aValue;
}
);
this.__defineSetter__("value",
function (newValue)
{