[Pkg-mozext-commits] [tabmixplus] 03/34: Calling setItem with value of undefined should remove the attribute if exist (regressed by changeset af7e71e7349d)
David Prévot
taffit at moszumanska.debian.org
Mon Mar 9 23:28:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 8d6583128d710ee2d905bde2aa766c2217ceb63d
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Feb 17 15:21:48 2015 +0200
Calling setItem with value of undefined should remove the attribute if exist (regressed by changeset af7e71e7349d)
---
chrome/content/utils.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/utils.js b/chrome/content/utils.js
index 394118d..6fce853 100644
--- a/chrome/content/utils.js
+++ b/chrome/content/utils.js
@@ -31,7 +31,7 @@ var Tabmix = { // jshint ignore:line
setItem: function(aItemOrId, aAttr, aVal) {
var elem = typeof(aItemOrId) == "string" ? document.getElementById(aItemOrId) : aItemOrId;
if (elem) {
- if (aVal === null) {
+ if (aVal === null || aVal === undefined) {
elem.removeAttribute(aAttr);
return;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list