[Pkg-mozext-commits] [firexpath] 19/51: Issue11 make sure we trim the class name after we removed the highlight class name.
David Prévot
taffit at moszumanska.debian.org
Sun Mar 22 15:08:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firexpath.
commit eca6dfb2720b912146fd6f256728515a572e6b02
Author: pierre.tholence at gmail.com <pierre.tholence at gmail.com@dfa30af4-1965-11df-8728-136f2c2ca76e>
Date: Thu Sep 23 09:00:15 2010 +0000
Issue11 make sure we trim the class name after we removed the highlight class name.
git-svn-id: http://firepath.googlecode.com/svn/trunk@24 dfa30af4-1965-11df-8728-136f2c2ca76e
---
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