mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-24 16:14:48 +01:00
chore(js): added glue clear callback fn for cursor controller
This commit is contained in:
parent
0b471b72fa
commit
be055c8e05
1 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,10 @@ impl CursorController {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[napi(js_name = "clear_callback")]
|
||||||
|
pub fn js_clear_callback(&self) {
|
||||||
|
self.clear_callback();
|
||||||
|
}
|
||||||
|
|
||||||
#[napi(js_name = "send")]
|
#[napi(js_name = "send")]
|
||||||
pub async fn js_send(&self, pos: JsCursor) -> napi::Result<()> {
|
pub async fn js_send(&self, pos: JsCursor) -> napi::Result<()> {
|
||||||
|
|
Loading…
Reference in a new issue