From 1ffbec9942ad90e00e28b05296d3233f52ce2dad Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 5 Dec 2011 13:39:30 +0100 Subject: Removed usage of bitwise assignment operators in logical operations JavaScript &= and |= are bitwise operators. They are shortened version of: foo = foo & bar foo = foo | bar In some places they were used as shortened version of logical operation and assignment. foo = foo && bar It lead to type conversion to Number which is wrong (0 !== false). This patch replaces such occurances with full version of logical operation and asignment. https://fedorahosted.org/freeipa/ticket/2040 --- install/ui/details.js | 2 +- install/ui/dialog.js | 2 +- install/ui/field.js | 6 +++--- install/ui/ipa.js | 4 ++-- install/ui/widget.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'install') diff --git a/install/ui/details.js b/install/ui/details.js index 320ed9a4..fdbf0b5a 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -508,7 +508,7 @@ IPA.details_facet = function(spec) { var fields = that.fields.get_fields(); for (var i=0; i