mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:07:59 +01:00
stringToURLs -> String.prototype.toURLArray
This commit is contained in:
@@ -100,6 +100,17 @@ function Hints() //{{{
|
||||
|
||||
function genElemCoords(elem)
|
||||
{
|
||||
// NOTE: experiment for making the function faster, report problems
|
||||
try {
|
||||
var box = window.content.document.getBoxObjectFor(elem);
|
||||
elem.absoLeft = box.x;
|
||||
elem.absoTop = box.y;
|
||||
elem.validCoord = elem.ownerDocument.validCoords;
|
||||
} catch(e) {
|
||||
elem.absoLeft = 0;
|
||||
elem.absoTop = 0;
|
||||
}
|
||||
return;
|
||||
if (typeof(elem.validCoord) != "undefined")
|
||||
{
|
||||
if (elem.validCoord == elem.ownerDocument.validCoords)
|
||||
|
||||
Reference in New Issue
Block a user