Merge pull request #4425 from fredj/duration_eq_0
Test number property with !== undefined
This commit is contained in:
@@ -75,7 +75,7 @@ ol.control.Rotate = function(opt_options) {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.duration_ = options.duration ? options.duration : 250;
|
this.duration_ = options.duration !== undefined ? options.duration : 250;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ ol.control.ZoomSlider = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {number}
|
* @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 className = options.className ? options.className : 'ol-zoomslider';
|
||||||
var thumbElement = goog.dom.createDom('BUTTON', {
|
var thumbElement = goog.dom.createDom('BUTTON', {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ ol.interaction.DoubleClickZoom = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.duration_ = options.duration ? options.duration : 250;
|
this.duration_ = options.duration !== undefined ? options.duration : 250;
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.interaction.DoubleClickZoom, ol.interaction.Interaction);
|
goog.inherits(ol.interaction.DoubleClickZoom, ol.interaction.Interaction);
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ ol.interaction.DragRotateAndZoom = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.duration_ = options.duration ? options.duration : 400;
|
this.duration_ = options.duration !== undefined ? options.duration : 400;
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.interaction.DragRotateAndZoom, ol.interaction.Pointer);
|
goog.inherits(ol.interaction.DragRotateAndZoom, ol.interaction.Pointer);
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ ol.interaction.DragRotate = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.duration_ = options.duration ? options.duration : 250;
|
this.duration_ = options.duration !== undefined ? options.duration : 250;
|
||||||
};
|
};
|
||||||
goog.inherits(ol.interaction.DragRotate, ol.interaction.Pointer);
|
goog.inherits(ol.interaction.DragRotate, ol.interaction.Pointer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user