1
0
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:
Martin Stubenschrott
2007-07-27 00:01:15 +00:00
parent 1a3dbab77e
commit 331cf1fc52
3 changed files with 18 additions and 5 deletions

View File

@@ -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)