[Pkg-mozext-commits] [tabmixplus] 05/26: Tabmix.showItem should handle non Boolean show value
David Prévot
taffit at moszumanska.debian.org
Fri Mar 25 21:56:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 0.4.2.3pre.160319a1
in repository tabmixplus.
commit 11e0262578dfac9828adaaade39ab66798e2d60b
Author: onemen <tabmix.onemen at gmail.com>
Date: Fri Mar 11 13:45:48 2016 +0200
Tabmix.showItem should handle non Boolean show value
---
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 c901d2b..ea37bab 100644
--- a/chrome/content/utils.js
+++ b/chrome/content/utils.js
@@ -24,7 +24,7 @@ var Tabmix = { // jshint ignore:line
// Show/hide one item (specified via name or the item element itself).
showItem: function(aItemOrId, aShow) {
var item = typeof (aItemOrId) == "string" ? document.getElementById(aItemOrId) : aItemOrId;
- if (item && item.hidden == aShow)
+ if (item && item.hidden == Boolean(aShow))
item.hidden = !aShow;
},
--
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