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

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
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~