check for duplicate event listeners in the rsx macro
This commit is contained in:
1 parent
663296ae45
commit
9b5a797008
2 files changed
+21
-7
No files matched your search
@@ -401,13 +401,6 @@ impl VirtualDom {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Break if this is the exact target element.
|
||||
// This means we won't call two listeners with the same name on the same element. This should be
|
||||
// documented, or be rejected from the rsx! macro outright
|
||||
if target_path == this_path {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user