mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
committed by
Endi S. Dewata
parent
c5ca34f41d
commit
1ffbec9942
@@ -515,7 +515,7 @@ IPA.multivalued_text_widget = function(spec) {
|
||||
var dirty = false;
|
||||
|
||||
for(var i=0; i < that.rows.length; i++) {
|
||||
dirty |= that.test_dirty_row(that.rows[i]);
|
||||
dirty = dirty || that.test_dirty_row(that.rows[i]);
|
||||
}
|
||||
|
||||
return dirty;
|
||||
|
Reference in New Issue
Block a user