mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 04:27:59 +01:00
Trivial refactoring of buffer.shiftFrameFocus.
It's a bit nicer to test against types rather than attribute strings.
This commit is contained in:
@@ -1392,7 +1392,7 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
// find all frames - depth-first search
|
// find all frames - depth-first search
|
||||||
(function (frame) {
|
(function (frame) {
|
||||||
if (frame.document.body.localName.toLowerCase() == "body")
|
if (frame.document.body instanceof HTMLBodyElement)
|
||||||
frames.push(frame);
|
frames.push(frame);
|
||||||
Array.forEach(frame.frames, arguments.callee);
|
Array.forEach(frame.frames, arguments.callee);
|
||||||
})(window.content);
|
})(window.content);
|
||||||
|
|||||||
Reference in New Issue
Block a user