[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 466/483: Issue 447 - removed deprecated property attribute from getRowProperties method

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:42:07 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 ecbfd95420e284ac683dfcd8d8adc410ba6d7fd6
Author: Manvel Saroyan <manvel at adblockplus.org>
Date:   Thu Jun 19 12:57:44 2014 +0400

    Issue 447 - removed deprecated property attribute from getRowProperties method
---
 chrome/content/composer.js | 17 +++++++----------
 metadata.gecko             |  6 +++---
 2 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/chrome/content/composer.js b/chrome/content/composer.js
index 77b180d..498ba56 100644
--- a/chrome/content/composer.js
+++ b/chrome/content/composer.js
@@ -110,21 +110,18 @@ function createPropertyProxy(obj, orig, key) {
   }
 }
 
-var atomService = Cc["@mozilla.org/atom-service;1"].getService(Ci.nsIAtomService);
-var selectedAtom = atomService.getAtom("selected-false");
-var anchorAtom = atomService.getAtom("anchor");
-
-function TreeView_getRowProperties(row, properties) {
-  if (!this.selection.isSelected(row))
-    properties.AppendElement(selectedAtom);
+function TreeView_getRowProperties(row) {
+  let properties = "selected-" + this.selection.isSelected(row);
 
   var item = this.getItemAtIndex(row);
   if (item && (item.nodeData.expression != "*" || item.nodeData == nodeData))
-    properties.AppendElement(anchorAtom);
+    properties += " anchor";
+
+  return properties;
 }
 
-function TreeView_getCellProperties(row, col, properties) {
-  this.getRowProperties(row, properties);
+function TreeView_getCellProperties(row, col) {
+  this.getRowProperties(row);
 }
 
 /*********************
diff --git a/metadata.gecko b/metadata.gecko
index 0356fce..a2d878b 100644
--- a/metadata.gecko
+++ b/metadata.gecko
@@ -20,7 +20,7 @@ zh-CN=http://adblockplus.org/zh_CN/elemhidehelper
 zh-TW=http://adblockplus.org/zh_TW/elemhidehelper
 
 [compat]
-firefox=20.0/33.0
-thunderbird=20.0/33.0
-seamonkey=2.17/2.30
+firefox=22.0/33.0
+thunderbird=22.0/33.0
+seamonkey=2.19/2.30
 conkeror=0.1/100.0

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