1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:27:58 +01:00

imported patch quick-cleanup

This commit is contained in:
Kris Maglione
2009-10-06 20:19:15 -04:00
parent f8bbd77356
commit f374fc981a
2 changed files with 2 additions and 13 deletions

View File

@@ -940,17 +940,8 @@ function Buffer() //{{{
* @property {Node} The last focused input field in the buffer. Used * @property {Node} The last focused input field in the buffer. Used
* by the "gi" key binding. * by the "gi" key binding.
*/ */
get lastInputField() get lastInputField() window.content.document.lastInputField || null,
{ set lastInputField(value) { window.content.document.lastInputField = value; },
if (window.content.document.lastInputField)
return window.content.document.lastInputField;
else
return null;
},
set lastInputField(value)
{
window.content.document.lastInputField = value;
},
/** /**
* @property {string} The current top-level document's URL. * @property {string} The current top-level document's URL.

View File

@@ -110,8 +110,6 @@ const modes = (function () //{{{
get all() mainModes.slice(), get all() mainModes.slice(),
get inputMode() main & (this.COMMAND_LINE | this.INPUT | this.TEXTAREA | this.COMPOSE),
get mainModes() (mode for ([k, mode] in Iterator(modeMap)) if (!mode.extended && mode.name == k)), get mainModes() (mode for ([k, mode] in Iterator(modeMap)) if (!mode.extended && mode.name == k)),
get mainMode() modeMap[main], get mainMode() modeMap[main],