Test number property with !== undefined

Fixes #4424
This commit is contained in:
Frederic Junod
2015-11-16 09:39:19 +01:00
parent afba132c13
commit dfbe7447c9
5 changed files with 5 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ ol.control.ZoomSlider = function(opt_options) {
* @private
* @type {number}
*/
this.duration_ = options.duration ? options.duration : 200;
this.duration_ = options.duration !== undefined ? options.duration : 200;
var className = options.className ? options.className : 'ol-zoomslider';
var thumbElement = goog.dom.createDom('BUTTON', {