@@ -286,7 +286,7 @@ impl EventListener {
286
286
/// #
287
287
/// let options = EventListenerOptions::enable_prevent_default();
288
288
///
289
- /// EventListener::new_with_options(target, event_type, & options, callback)
289
+ /// EventListener::new_with_options(target, event_type, options, callback)
290
290
/// # ;
291
291
/// ```
292
292
///
@@ -306,7 +306,7 @@ impl EventListener {
306
306
/// // This runs the event listener in the capture phase, rather than the bubble phase
307
307
/// let options = EventListenerOptions::run_in_capture_phase();
308
308
///
309
- /// EventListener::new_with_options(target, event_type, & options, callback)
309
+ /// EventListener::new_with_options(target, event_type, options, callback)
310
310
/// # ;
311
311
/// ```
312
312
///
@@ -415,7 +415,7 @@ impl EventListener {
415
415
/// #
416
416
/// let options = EventListenerOptions::enable_prevent_default();
417
417
///
418
- /// let listener = EventListener::new_with_options(&target, "touchstart", & options, move |event| {
418
+ /// let listener = EventListener::new_with_options(&target, "touchstart", options, move |event| {
419
419
/// event.prevent_default();
420
420
///
421
421
/// // ...
@@ -433,7 +433,7 @@ impl EventListener {
433
433
/// #
434
434
/// let options = EventListenerOptions::run_in_capture_phase();
435
435
///
436
- /// let listener = EventListener::new_with_options(&target, "click", & options, move |event| {
436
+ /// let listener = EventListener::new_with_options(&target, "click", options, move |event| {
437
437
/// // Stop the event from bubbling
438
438
/// event.stop_propagation();
439
439
///
@@ -444,7 +444,7 @@ impl EventListener {
444
444
pub fn new_with_options < S , F > (
445
445
target : & EventTarget ,
446
446
event_type : S ,
447
- options : & EventListenerOptions ,
447
+ options : EventListenerOptions ,
448
448
callback : F ,
449
449
) -> Self
450
450
where
@@ -479,7 +479,7 @@ impl EventListener {
479
479
/// #
480
480
/// let options = EventListenerOptions::enable_prevent_default();
481
481
///
482
- /// let listener = EventListener::once_with_options(&target, "load", & options, move |event| {
482
+ /// let listener = EventListener::once_with_options(&target, "load", options, move |event| {
483
483
/// event.prevent_default();
484
484
///
485
485
/// // ...
@@ -497,7 +497,7 @@ impl EventListener {
497
497
/// #
498
498
/// let options = EventListenerOptions::run_in_capture_phase();
499
499
///
500
- /// let listener = EventListener::once_with_options(&target, "click", & options, move |event| {
500
+ /// let listener = EventListener::once_with_options(&target, "click", options, move |event| {
501
501
/// // Stop the event from bubbling
502
502
/// event.stop_propagation();
503
503
///
@@ -508,7 +508,7 @@ impl EventListener {
508
508
pub fn once_with_options < S , F > (
509
509
target : & EventTarget ,
510
510
event_type : S ,
511
- options : & EventListenerOptions ,
511
+ options : EventListenerOptions ,
512
512
callback : F ,
513
513
) -> Self
514
514
where
0 commit comments