mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-28 15:54:54 +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(())
|
||||
}
|
||||
|
||||
|
||||
#[napi(js_name = "clear_callback")]
|
||||
pub fn js_clear_callback(&self) {
|
||||
self.clear_callback();
|
||||
}
|
||||
|
||||
#[napi(js_name = "send")]
|
||||
pub async fn js_send(&self, pos: JsCursor) -> napi::Result<()> {
|
||||
|
|
Loading…
Reference in a new issue