Skip to main content

event_target_composed_path

Function event_target_composed_path 

Source
pub(crate) fn event_target_composed_path(
    _it: &mut Interp,
    this: Value,
    _a: &[Value],
) -> Result<Value, Value>
Expand description

event.composedPath()EventTarget 経路用)。DOM ツリーが無いこのクラスでは dispatchEvent 中のみ target プロパティが設定されるため、それを利用して 「発火中は [target]、発火前は []」という簡略化した経路を返す。