[Pkg-mozext-commits] [nosquint] 04/13: Fix reference to undefined variable
David Prévot
taffit at moszumanska.debian.org
Tue Apr 28 01:41:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 2.1.7
in repository nosquint.
commit 41b563b76ebc17e357c35af8500baec28dc8eb1f
Author: Jason Tackaberry <tack at urandom.ca>
Date: Sun Mar 31 19:48:42 2013 -0400
Fix reference to undefined variable
---
src/content/dlg-global.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/content/dlg-global.js b/src/content/dlg-global.js
index 8625305..c3ec240 100644
--- a/src/content/dlg-global.js
+++ b/src/content/dlg-global.js
@@ -133,7 +133,7 @@ NoSquint.dialogs.global = NoSquint.ns(function() { with (NoSquint) {
// Enables or disables all elements in the given hierarchy
this.enableTree = function(node, state) {
for (let child in iter(node.childNodes)) {
- if (state && child.disabled == false || child.disabled == true)
+ if (child.disabled === undefined || child.disabled == true || (state && child.disabled == false))
child.disabled = state;
if (child.childNodes.length)
this.enableTree(child, state);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nosquint.git
More information about the Pkg-mozext-commits
mailing list