From 2ebb1ce8fa7ab9f5fa9ae56686633e37310cb634 Mon Sep 17 00:00:00 2001 From: glen-nu Date: Tue, 7 Nov 2017 14:16:01 +0800 Subject: [PATCH] update InteractionOptions.prototype.handleEvent docs `InteractionOptions.prototype.handleEvent` stops propagation on falsy return, not explicit `false` --- externs/olx.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 5ed63f1848..d3a9987d27 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -273,9 +273,10 @@ olx.interaction.InteractionOptions; /** * Method called by the map to notify the interaction that a browser event was - * dispatched to the map. The function may return `false` to prevent the + * dispatched to the map. If the function returns a falsy value, * propagation of the event to other interactions in the map's interactions - * chain. + * chain will be prevented (this includes functions with no explicit return). See + * {@link https://developer.mozilla.org/en-US/docs/Glossary/Falsy} * @type {function(ol.MapBrowserEvent):boolean} * @api */