1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 06:48:00 +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:
Doug Kearns
2009-06-17 20:47:10 +10:00
parent 64d41b09a4
commit 561ed5fc3e

View File

@@ -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);