Selector struct 추가

This commit is contained in:
freestrings
2019-04-07 23:34:16 +09:00
parent d955a1632c
commit 30aa38379a
11 changed files with 294 additions and 65 deletions

View File

@ -120,14 +120,6 @@ pub fn compile(path: &str) -> JsValue {
ret
}
///
/// deprecated. use selector
///
#[wasm_bindgen]
pub fn reader(js_value: JsValue) -> JsValue {
selector(js_value)
}
#[wasm_bindgen]
pub fn selector(js_value: JsValue) -> JsValue {
let json = match js_value.as_f64() {
@ -167,13 +159,5 @@ pub fn select(js_value: JsValue, path: &str) -> JsValue {
}
}
///
/// deprecated. use select
///
#[wasm_bindgen]
pub fn read(js_value: JsValue, path: &str) -> JsValue {
select(js_value, path)
}
#[wasm_bindgen]
pub fn testa() {}