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

made followDocRelship work better

This commit is contained in:
Martin Stubenschrott
2008-01-06 16:37:49 +00:00
parent ca02613a83
commit e097b79a0d
2 changed files with 11 additions and 5 deletions

View File

@@ -992,14 +992,18 @@ vimperator.Buffer = function () //{{{
followDocumentRelationship: function (relationship)
{
var retVal;
if (window.content.frames.length != 0)
{
for (var i = 0; i < window.content.frames.length; i++)
retVal = followFrameRelationship(relationship, window.content);
if (!retVal)
{
retVal = followFrameRelationship(relationship, window.content.frames[i]);
if (retVal)
break;
// only loop through frames if the main content didnt match
for (var i = 0; i < window.content.frames.length; i++)
{
retVal = followFrameRelationship(relationship, window.content.frames[i]);
if (retVal)
break;
}
}
}
else

View File

@@ -59,6 +59,8 @@ Option Description
-R 'GROUP' Disables access to 'GROUP'.
---------------------------------------------
atag:anchor[]
[[X1]]
Sub-section with Anchor
~~~~~~~~~~~~~~~~~~~~~~~