From fd5f4f3dd879e7d60d752cfb4223f3e7b42dea1b Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 18 Jun 2013 15:01:59 +0200 Subject: [PATCH] API doc strings for preventDefault and stopPropagation thanks @elemoine --- src/ol/mapbrowserevent.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/mapbrowserevent.js b/src/ol/mapbrowserevent.js index fef87dd41f..eadac888fb 100644 --- a/src/ol/mapbrowserevent.js +++ b/src/ol/mapbrowserevent.js @@ -104,6 +104,8 @@ ol.MapBrowserEvent.prototype.isMouseActionButton = function() { /** + * Prevents the default browser action. + * @see https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault * @override */ ol.MapBrowserEvent.prototype.preventDefault = function() { @@ -121,6 +123,8 @@ ol.MapBrowserEvent.prototype.stopOtherInteractions = function() { /** + * Prevents further propagation of the current event. + * @see https://developer.mozilla.org/en-US/docs/Web/API/event.stopPropagation * @override */ ol.MapBrowserEvent.prototype.stopPropagation = function() {