@@ -96,7 +96,7 @@ impl Event {
96
96
}
97
97
#[ allow( bad_style, unused_variables) ]
98
98
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
99
- pub extern "C" fn new ( type_ : & str , event_init_dict : EventInit ) -> Event {
99
+ pub fn new ( type_ : & str , event_init_dict : EventInit ) -> Event {
100
100
panic ! (
101
101
"cannot call wasm-bindgen imported functions on \
102
102
non-wasm targets"
@@ -140,7 +140,7 @@ impl Event {
140
140
}
141
141
#[ allow( bad_style, unused_variables) ]
142
142
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
143
- pub extern "C" fn event_phase ( & self ) -> u16 {
143
+ pub fn event_phase ( & self ) -> u16 {
144
144
panic ! (
145
145
"cannot call wasm-bindgen imported functions on \
146
146
non-wasm targets"
@@ -180,7 +180,7 @@ impl Event {
180
180
}
181
181
#[ allow( bad_style, unused_variables) ]
182
182
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
183
- pub extern "C" fn stop_propagation ( & self ) {
183
+ pub fn stop_propagation ( & self ) {
184
184
panic ! (
185
185
"cannot call wasm-bindgen imported functions on \
186
186
non-wasm targets"
@@ -220,7 +220,7 @@ impl Event {
220
220
}
221
221
#[ allow( bad_style, unused_variables) ]
222
222
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
223
- pub extern "C" fn stop_immediate_propagation ( & self ) {
223
+ pub fn stop_immediate_propagation ( & self ) {
224
224
panic ! (
225
225
"cannot call wasm-bindgen imported functions on \
226
226
non-wasm targets"
@@ -264,7 +264,7 @@ impl Event {
264
264
}
265
265
#[ allow( bad_style, unused_variables) ]
266
266
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
267
- pub extern "C" fn bubbles ( & self ) -> bool {
267
+ pub fn bubbles ( & self ) -> bool {
268
268
panic ! (
269
269
"cannot call wasm-bindgen imported functions on \
270
270
non-wasm targets"
@@ -308,7 +308,7 @@ impl Event {
308
308
}
309
309
#[ allow( bad_style, unused_variables) ]
310
310
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
311
- pub extern "C" fn cancelable ( & self ) -> bool {
311
+ pub fn cancelable ( & self ) -> bool {
312
312
panic ! (
313
313
"cannot call wasm-bindgen imported functions on \
314
314
non-wasm targets"
@@ -348,7 +348,7 @@ impl Event {
348
348
}
349
349
#[ allow( bad_style, unused_variables) ]
350
350
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
351
- pub extern "C" fn prevent_default ( & self ) {
351
+ pub fn prevent_default ( & self ) {
352
352
panic ! (
353
353
"cannot call wasm-bindgen imported functions on \
354
354
non-wasm targets"
@@ -392,7 +392,7 @@ impl Event {
392
392
}
393
393
#[ allow( bad_style, unused_variables) ]
394
394
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
395
- pub extern "C" fn default_prevented ( & self ) -> bool {
395
+ pub fn default_prevented ( & self ) -> bool {
396
396
panic ! (
397
397
"cannot call wasm-bindgen imported functions on \
398
398
non-wasm targets"
@@ -436,7 +436,7 @@ impl Event {
436
436
}
437
437
#[ allow( bad_style, unused_variables) ]
438
438
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
439
- pub extern "C" fn composed ( & self ) -> bool {
439
+ pub fn composed ( & self ) -> bool {
440
440
panic ! (
441
441
"cannot call wasm-bindgen imported functions on \
442
442
non-wasm targets"
@@ -480,7 +480,7 @@ impl Event {
480
480
}
481
481
#[ allow( bad_style, unused_variables) ]
482
482
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
483
- pub extern "C" fn is_trusted ( & self ) -> bool {
483
+ pub fn is_trusted ( & self ) -> bool {
484
484
panic ! (
485
485
"cannot call wasm-bindgen imported functions on \
486
486
non-wasm targets"
@@ -524,7 +524,7 @@ impl Event {
524
524
}
525
525
#[ allow( bad_style, unused_variables) ]
526
526
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
527
- pub extern "C" fn time_stamp ( & self ) -> DOMHighResTimeStamp {
527
+ pub fn time_stamp ( & self ) -> DOMHighResTimeStamp {
528
528
panic ! (
529
529
"cannot call wasm-bindgen imported functions on \
530
530
non-wasm targets"
@@ -578,7 +578,7 @@ impl Event {
578
578
}
579
579
#[ allow( bad_style, unused_variables) ]
580
580
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
581
- pub extern "C" fn init_event ( & self , type_ : & str , bubbles : bool , cancelable : bool ) {
581
+ pub fn init_event ( & self , type_ : & str , bubbles : bool , cancelable : bool ) {
582
582
panic ! (
583
583
"cannot call wasm-bindgen imported functions on \
584
584
non-wasm targets"
@@ -622,7 +622,7 @@ impl Event {
622
622
}
623
623
#[ allow( bad_style, unused_variables) ]
624
624
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
625
- pub extern "C" fn cancel_bubble ( & self ) -> bool {
625
+ pub fn cancel_bubble ( & self ) -> bool {
626
626
panic ! (
627
627
"cannot call wasm-bindgen imported functions on \
628
628
non-wasm targets"
@@ -668,7 +668,7 @@ impl Event {
668
668
}
669
669
#[ allow( bad_style, unused_variables) ]
670
670
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
671
- pub extern "C" fn set_cancel_bubble ( & self , cancel_bubble : bool ) {
671
+ pub fn set_cancel_bubble ( & self , cancel_bubble : bool ) {
672
672
panic ! (
673
673
"cannot call wasm-bindgen imported functions on \
674
674
non-wasm targets"
@@ -681,4 +681,4 @@ pub type DOMHighResTimeStamp = f64;
681
681
pub type EventInit = bool ;
682
682
#[ allow( non_upper_case_globals) ]
683
683
#[ wasm_custom_section = "__wasm_bindgen_unstable" ]
684
- const __WASM_BINDGEN_GENERATED_wasm_bindgen_webidl_0_2_11_0 : [ u8 ; 3815usize ] = * b"\xE3 \x0E \0 \0 {\" exports\" :[],\" enums\" :[],\" imports\" :[{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" type\" }},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_new_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Constructor\" ,\" getter\" :null,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" new\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_event_phase_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :\" eventPhase\" ,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" eventPhase\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_stop_propagation_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :null,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" stopPropagation\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_stop_immediate_propagation_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :null,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" stopImmediatePropagation\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_bubbles_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :\" bubbles\" ,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" bubbles\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_cancelable_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :\" cancelable\" ,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" cancelable\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_prevent_default_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :null,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" preventDefault\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_default_prevented_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :\" defaultPrevented\" ,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" defaultPrevented\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_composed_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :\" composed\" ,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" composed\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_is_trusted_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :\" isTrusted\" ,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" isTrusted\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_time_stamp_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :\" timeStamp\" ,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" timeStamp\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_init_event_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :null,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" initEvent\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_cancel_bubble_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :\" cancelBubble\" ,\" setter\" :null},\" structural\" :false,\" function\" :{\" name\" :\" cancelBubble\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_set_cancel_bubble_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Normal\" ,\" getter\" :null,\" setter\" :\" cancelBubble\" },\" structural\" :false,\" function\" :{\" name\" :\" set_cancelBubble\" }}}],\" structs\" :[],\" version\" :\" 0.2.11 (13c93c46f)\" ,\" schema_version\" :\" 5\" }" ;
684
+ const __WASM_BINDGEN_GENERATED_wasm_bindgen_webidl_0_2_11_0 : [ u8 ; 4023usize ] = * b"\xB3 \x0F \0 \0 {\" exports\" :[],\" enums\" :[],\" imports\" :[{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" type\" }},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_new_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :\" Constructor\" },\" structural\" :false,\" function\" :{\" name\" :\" new\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_event_phase_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Getter\" :\" eventPhase\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" eventPhase\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_stop_propagation_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :\" Regular\" }}},\" structural\" :false,\" function\" :{\" name\" :\" stopPropagation\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_stop_immediate_propagation_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :\" Regular\" }}},\" structural\" :false,\" function\" :{\" name\" :\" stopImmediatePropagation\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_bubbles_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Getter\" :\" bubbles\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" bubbles\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_cancelable_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Getter\" :\" cancelable\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" cancelable\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_prevent_default_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :\" Regular\" }}},\" structural\" :false,\" function\" :{\" name\" :\" preventDefault\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_default_prevented_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Getter\" :\" defaultPrevented\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" defaultPrevented\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_composed_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Getter\" :\" composed\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" composed\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_is_trusted_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Getter\" :\" isTrusted\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" isTrusted\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_time_stamp_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Getter\" :\" timeStamp\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" timeStamp\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_init_event_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :\" Regular\" }}},\" structural\" :false,\" function\" :{\" name\" :\" initEvent\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_cancel_bubble_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Getter\" :\" cancelBubble\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" cancelBubble\" }}},{\" module\" :null,\" version\" :null,\" js_namespace\" :null,\" kind\" :{\" kind\" :\" function\" ,\" shim\" :\" __widl_f_set_cancel_bubble_Event\" ,\" catch\" :false,\" method\" :{\" class\" :\" Event\" ,\" kind\" :{\" Operation\" :{\" is_static\" :false,\" kind\" :{\" Setter\" :\" cancelBubble\" }}}},\" structural\" :false,\" function\" :{\" name\" :\" set_cancelBubble\" }}}],\" structs\" :[],\" version\" :\" 0.2.11 (bfec9e640)\" ,\" schema_version\" :\" 6\" }" ;
0 commit comments