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.Rotate = function(opt_options) {
* @type {number}
* @private
*/
this.duration_ = options.duration ? options.duration : 250;
this.duration_ = options.duration !== undefined ? options.duration : 250;
/**
* @type {boolean}