Skip to main content

reflect_weak_referenceable_dom_object

Function reflect_weak_referenceable_dom_object 

Source
pub fn reflect_weak_referenceable_dom_object<D, T, U>(
    cx: &mut JSContext,
    obj: Rc<T>,
    global: &U,
) -> DomRoot<T>
Expand description

Create the reflector for a new DOM object and yield ownership to the reflector.