pub fn js_delete(&mut self) -> js_sys::Promise {
        clone!(self.renderer, self.session);
        let root = self.root.clone();
        future_to_promise(self.renderer.clone().with_lock(async move {
            renderer.delete()?;
            let result = session.delete();
            root.borrow_mut()
                .take()
                .ok_or("Already deleted!")?
                .destroy();
            Ok(JsValue::from(result))
        }))
    }
/// Delete the `View` and all associated state, rendering this
/// `<perspective-viewer>` unusable and freeing all associated resources.
/// Does not delete the supplied `Table` (as this is constructed by the
/// callee).  Allowing a `<perspective-viewer>` to be garbage-collected
/// without calling `delete()` will leak WASM memory.
Delete the `View` and all associated state, rendering this
`` unusable and freeing all associated resources.
Does not delete the supplied `Table` (as this is constructed by the
callee).  Allowing a `` to be garbage-collected
without calling `delete()` will leak WASM memory.
Delete the ` View ` and all associated state rendering this ` ` unusable and freeing all associated resources . Does not delete the supplied ` Table ` ( as this is constructed by the callee ) . Allowing a ` ` to be garbage - collected without calling ` delete () ` will leak WASM memory .
pub fn js_delete(&mut self) -> js_sys::Promise {
        clone!(self.renderer, self.session);
        let root = self.root.clone();
        future_to_promise(self.renderer.clone().with_lock(async move {
            renderer.delete()?;
            let result = session.delete();
            root.borrow_mut()
                .take()
                .ok_or("Already deleted!")?
                .destroy();
            Ok(JsValue::from(result))
        }))
    }
pub fn js_delete ( & mut self ) -> js_sys :: Promise { clone ! ( self renderer self session ) ; let root = self . root . clone ( ) ; future_to_promise ( self . renderer . clone ( ) . with_lock ( async move { renderer . delete ( ) ? ; let result = session . delete ( ) ; root . borrow_mut ( ) . take ( ) . ok_or ( " " ) ? . destroy ( ) ; Ok ( JsValue :: from ( result ) ) } ) ) }
Delete the `View` and all associated state, rendering this
`<perspective-viewer>` unusable and freeing all associated resources.
Delete the ` View ` and all associated state rendering this ` <perspective - viewer > ` unusable and freeing all associated resources .
&mut self
&mut self