From 14f2bf636ca9d83ca7dd225fc60b53890d2c27c7 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Thu, 11 Jan 2018 18:49:48 +0100 Subject: [PATCH] OnEventView: add note regarding single callback per event --- src/views/on_event_view.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/on_event_view.rs b/src/views/on_event_view.rs index f8a8da6..c5a5510 100644 --- a/src/views/on_event_view.rs +++ b/src/views/on_event_view.rs @@ -10,6 +10,9 @@ use view::{View, ViewWrapper}; /// This view registers a set of callbacks tied to specific events, to be run /// in certain conditions. /// +/// **Note**: only one callback can be registered per event. Trying to register +/// a new one will replace any existing one for that event. +/// /// * Some callbacks are called only for vents ignored by the wrapped view /// (those registered by [`on_event`] or [`on_event_inner`]) /// * Others are processed first, and can control whether the child view should