[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 03/483: Kill moveElem

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:21 UTC 2015


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

taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.

commit d6ce28305cbb3e79c7010b441fb2d375e2057814
Author: Wladimir Palant <trev at gtchat.de>
Date:   Mon Jan 8 01:22:32 2007 +0000

    Kill moveElem
    
    --HG--
    extra : convert_revision : svn%3Ad8bf93c1-8190-44a8-bb31-1ea94378a4df/trunk%40600
---
 chrome/content/aardvark.js | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/chrome/content/aardvark.js b/chrome/content/aardvark.js
index 71b5fa3..93521da 100644
--- a/chrome/content/aardvark.js
+++ b/chrome/content/aardvark.js
@@ -260,7 +260,8 @@ ehhAardvark.showBoxAndLabel = function(elem, string) {
     this.labelElem.style.MozBorderRadiusTopright = "";
     delete (this.labelDrawnHigh); 
   }
-  this.moveElem (this.labelElem, pos.x+2, y);
+  this.labelElem.style.left = (pos.x + 2) + "px";
+  this.labelElem.style.top = y + "px";
   this.labelElem.style.visibility = "visible";
 }
 
@@ -309,15 +310,6 @@ ehhAardvark.getWindowDimensions = function ()
   return out;
 }
 
-// move a div (or whatever) to an x y location
-ehhAardvark.moveElem = function (elem, x, y)
-{
-  elem = elem.style;
-  
-  elem.left = x + "px";
-  elem.top = y + "px";     
-}
-
 ehhAardvark.setElementStyleDefault = function (elem, bgColor)
 {
   var s = elem.style;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git



More information about the Pkg-mozext-commits mailing list