1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 17:27:57 +01:00

speeded up hints display on large sites by factor 2

This commit is contained in:
Martin Stubenschrott
2007-11-01 13:31:53 +00:00
parent 835b6fc726
commit 2e45514f1e
3 changed files with 55 additions and 48 deletions

View File

@@ -167,7 +167,7 @@ vimperator.Buffer = function() //{{{
});
// returns an XPathResult object
this.evaluateXPath = function(expression, doc, elem, ordered)
this.evaluateXPath = function(expression, doc, elem, asIterator)
{
if (!doc)
doc = window.content.document;
@@ -183,7 +183,7 @@ vimperator.Buffer = function() //{{{
return null;
}
},
ordered ? XPathResult.ORDERED_NODE_SNAPSHOT_TYPE : XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
asIterator ? XPathResult.UNORDERED_NODE_ITERATOR_TYPE : XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null
);