Use !!expr and not the verbose expr !== null
This addresses review comments by @tschaub.
This commit is contained in:
@@ -583,7 +583,7 @@ ol.interaction.Modify.handleDownEvent_ = function(evt) {
|
|||||||
new ol.interaction.ModifyEvent(ol.ModifyEventType.MODIFYSTART,
|
new ol.interaction.ModifyEvent(ol.ModifyEventType.MODIFYSTART,
|
||||||
this.features_, evt));
|
this.features_, evt));
|
||||||
}
|
}
|
||||||
return this.vertexFeature_ !== null;
|
return !!this.vertexFeature_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1166,7 +1166,7 @@ ol.Map.prototype.isDef = function() {
|
|||||||
* @return {boolean} Is rendered.
|
* @return {boolean} Is rendered.
|
||||||
*/
|
*/
|
||||||
ol.Map.prototype.isRendered = function() {
|
ol.Map.prototype.isRendered = function() {
|
||||||
return this.frameState_ !== null;
|
return !!this.frameState_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user