mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
chore: fix some minor issues in the comments (#3872)
Signed-off-by: rustfix <771054535@qq.com>
This commit is contained in:
parent
b4d083ef8f
commit
8945ab7856
@ -17,7 +17,7 @@ use crate::Codec;
|
||||
|
||||
/// A connection manager for components interaction with oneshot workers.
|
||||
///
|
||||
/// As this type implements [Stream] + [Sink], it can be splitted with [`StreamExt::split`].
|
||||
/// As this type implements [Stream] + [Sink], it can be split with [`StreamExt::split`].
|
||||
pub struct ReactorBridge<R>
|
||||
where
|
||||
R: Reactor + 'static,
|
||||
|
||||
@ -401,7 +401,7 @@ impl SubtreeData {
|
||||
&'s self,
|
||||
event: &'s Event,
|
||||
) -> Option<impl 's + Iterator<Item = (&'s SubtreeData, Element)>> {
|
||||
// Note: the event is not necessarily indentically the same object for all installed
|
||||
// Note: the event is not necessarily identically the same object for all installed
|
||||
// handlers hence this cache can be unreliable. Hence the cached repsonsible_tree_id
|
||||
// might be missing. On the other hand, due to event retargeting at shadow roots,
|
||||
// the cache might be wrong! Keep in mind that we handle events in the capture
|
||||
@ -423,7 +423,7 @@ impl SubtreeData {
|
||||
// that is responsible for handling this event, and it's not this subtree.
|
||||
return None;
|
||||
}
|
||||
// We're tasked with finding the subtree that is reponsible with handling the event, and/or
|
||||
// We're tasked with finding the subtree that is responsible with handling the event, and/or
|
||||
// run the handling if that's `self`.
|
||||
let target = event_path.get(0).dyn_into::<Element>().ok()?;
|
||||
let should_bubble = BUBBLE_EVENTS.load(Ordering::Relaxed) && event.bubbles();
|
||||
|
||||
@ -280,7 +280,7 @@ impl Scheduler {
|
||||
|
||||
// Priority rendering
|
||||
//
|
||||
// This is needed for hydration susequent render to fix node refs.
|
||||
// This is needed for hydration subsequent render to fix node refs.
|
||||
if let Some(r) = self.render_priority.pop_topmost() {
|
||||
to_run.push(r);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user