[Pkg-mozext-commits] [firexpath] 02/12: Issue11 make sure we trim the class name after we removed the highlight class name.

David Prévot taffit at moszumanska.debian.org
Sat Mar 26 19:35:50 UTC 2016


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

taffit pushed a commit to tag FirePath-0.9.6
in repository firexpath.

commit dad76d2db9797729b78781bdbd88f38683f3f0b7
Author: pierre.tholence <pierre.tholence at gmail.com>
Date:   Thu Sep 23 09:00:15 2010 +0000

    Issue11 make sure we trim the class name after we removed the highlight class name.
---
 content/FirePathPanel.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/content/FirePathPanel.js b/content/FirePathPanel.js
index 95f9a9f..9701488 100644
--- a/content/FirePathPanel.js
+++ b/content/FirePathPanel.js
@@ -1814,8 +1814,11 @@ Firebug.FirePathPanel.ResultHighlightModule = extend(Firebug.Module,
 		var element;
 		while(element = this.highlightedElement.pop()) {
 			removeClass(element, "firepath-matching-node");
-			if (element.className === '' || (element.className && element.className.trim().length === 0)) {
-				element.removeAttribute("class");
+			if (element.className) {
+				element.className = element.className.trim();
+				if(element.className.length === 0) {
+					element.removeAttribute("class");
+				}
 			}
 		}
 	}

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



More information about the Pkg-mozext-commits mailing list