pub fn reflect_dom_object<T, U>(obj: Box<T>, global: &U) -> Root<Dom<T>>where
T: DomObject + DomObjectWrap,
U: DerivedFrom<GlobalScope>,
Expand description
Create the reflector for a new DOM object and yield ownership to the reflector.
pub fn reflect_dom_object<T, U>(obj: Box<T>, global: &U) -> Root<Dom<T>>where
T: DomObject + DomObjectWrap,
U: DerivedFrom<GlobalScope>,
Create the reflector for a new DOM object and yield ownership to the reflector.