From 718f32b177aaddea85f5fe8ad4ebf06364848bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Dub=C3=A9?= Date: Wed, 14 Oct 2015 12:56:40 -0400 Subject: [PATCH] Fix Zoom control duration option - allow `0` as value --- src/ol/control/zoomcontrol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/control/zoomcontrol.js b/src/ol/control/zoomcontrol.js index deae59a0aa..c963b41032 100644 --- a/src/ol/control/zoomcontrol.js +++ b/src/ol/control/zoomcontrol.js @@ -71,7 +71,7 @@ ol.control.Zoom = function(opt_options) { * @type {number} * @private */ - this.duration_ = options.duration ? options.duration : 250; + this.duration_ = options.duration !== undefined ? options.duration : 250; }; goog.inherits(ol.control.Zoom, ol.control.Control);