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

Replace 'laststatus' with a 'guioptions' flag.

This commit is contained in:
Kris Maglione
2010-11-14 22:47:02 -05:00
parent 2518a3423f
commit 1abe9fc2bb
8 changed files with 10 additions and 56 deletions

View File

@@ -811,7 +811,6 @@ const Buffer = Module("buffer", {
* contains at least one frame.
*
* @param {number} count The number of frames to skip through.
* @param {boolean} forward The direction of motion.
*/
shiftFrameFocus: function (count) {
if (!(window.content.document instanceof HTMLDocument))
@@ -829,10 +828,6 @@ const Buffer = Module("buffer", {
rect.width && rect.height);
// find the currently focused frame index
// TODO: If the window is a frameset then the first _frame_ should be
// focused. Since this is not the current FF behavior,
// we initialize current to -1 so the first call takes us to the
// first frame.
let current = Math.max(0, frames.indexOf(buffer.focusedFrame));
// calculate the next frame to focus
@@ -840,7 +835,6 @@ const Buffer = Module("buffer", {
if (next < 0 || next >= frames.length)
dactyl.beep();
next = Math.constrain(next, 0, frames.length - 1);
util.dump(current, count, next, String(frames[next]));
// focus next frame and scroll into view
frames[next].focus();