1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:58: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) followDocumentRelationship: function (relationship)
{ {
var retVal; var retVal;
if (window.content.frames.length != 0) 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]); // only loop through frames if the main content didnt match
if (retVal) for (var i = 0; i < window.content.frames.length; i++)
break; {
retVal = followFrameRelationship(relationship, window.content.frames[i]);
if (retVal)
break;
}
} }
} }
else else

View File

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