script: Fix the logic for mutation observer attributes.

This commit is contained in:
Emilio Cobos Álvarez 2018-07-23 19:28:01 +02:00
parent 073629076f
commit 39e647de06
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 2 additions and 13 deletions

View file

@ -132,8 +132,8 @@ impl MutationObserver {
if *namespace != ns!() {
continue;
}
if registered.options.attribute_filter.iter()
.find(|s| &**s == &**name).is_some() {
if !registered.options.attribute_filter.iter()
.any(|s| &**s == &**name) {
continue;
}
}