1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pub
use Cell;
use HashMap;
use Closure;
thread_local!;
/*
pub(crate) fn create_unique_identifier() -> usize {
let id = NODE_ID_COUNTER.with(|x| {
let tmp = x.get();
x.set(tmp + 1);
tmp
});
id
}
*/
/*
pub(crate) fn clean_unique_identifier() {
NODE_ID_COUNTER.with(|x| {
x.set(1);
});
}
*/
/*
pub(crate) fn set_unique_identifier(id: usize) {
NODE_ID_COUNTER.with(|x| {
x.set(id);
});
}
*/
pub type ActiveClosure = ;
pub const DATA_VDOM_ID: &str = "dom-event-id";