diff --git a/src/ol/interaction/modifyinteraction.js b/src/ol/interaction/modifyinteraction.js index f850f63a4a..de04fdc1d1 100644 --- a/src/ol/interaction/modifyinteraction.js +++ b/src/ol/interaction/modifyinteraction.js @@ -583,7 +583,7 @@ ol.interaction.Modify.handleDownEvent_ = function(evt) { new ol.interaction.ModifyEvent(ol.ModifyEventType.MODIFYSTART, this.features_, evt)); } - return this.vertexFeature_ !== null; + return !!this.vertexFeature_; }; diff --git a/src/ol/map.js b/src/ol/map.js index 98da3c3a3f..0d39b53552 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -1166,7 +1166,7 @@ ol.Map.prototype.isDef = function() { * @return {boolean} Is rendered. */ ol.Map.prototype.isRendered = function() { - return this.frameState_ !== null; + return !!this.frameState_; };