From a38ac3a07b42249dd79148e70beb9ef602fe1c8d Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Thu, 1 Oct 2015 09:12:43 +0200 Subject: [PATCH] Use !!expr and not the verbose expr !== null This addresses review comments by @tschaub. --- src/ol/interaction/modifyinteraction.js | 2 +- src/ol/map.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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_; };