Fix Zoom control duration option - allow 0 as value

This commit is contained in:
Alexandre Dubé
2015-10-14 12:56:40 -04:00
parent 1f8ee3a5ae
commit 718f32b177

View File

@@ -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);