[Pkg-mozext-commits] [itsalltext] 155/459: Removed getPageOffset

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit ba65de6c9194428e550e5dc612e72292550e1e9c
Author: Christian Höltje <docwhat at gerf.org>
Date:   Thu Mar 1 17:59:07 2007 -0500

    Removed getPageOffset
---
 chrome/content/itsalltext.js | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/chrome/content/itsalltext.js b/chrome/content/itsalltext.js
index 8537501..96f4fcb 100644
--- a/chrome/content/itsalltext.js
+++ b/chrome/content/itsalltext.js
@@ -438,23 +438,6 @@ var ItsAllText = function() {
     };
 
     /**
-     * Returns the real page offset for an element.
-     * @param {Object} node A DOM element.
-     * @return {Array} The X & Y page offsets
-     */
-    // @todo: [9] Remove getPageOffset if it's not used
-    that.getPageOffset = function(node) {
-        var pos = [node.offsetLeft, node.offsetTop];
-        var pnode = node.offsetParent;
-        while(pnode) {
-            pos[0] += pnode.offsetLeft || 0;
-            pos[1] += pnode.offsetTop || 0;
-            pnode = pnode.offsetParent;
-        }
-        return pos;
-    };
-
-    /**
      * This function is called regularly to watch changes to web documents.
      */
     that.monitor = {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list