Use !!expr and not the verbose expr !== null

This addresses review comments by @tschaub.
This commit is contained in:
Marc Jansen committed 2015-10-01 09:18:53 +02:00
1 parent d5c5d651cb
commit a38ac3a07b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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_;
};
+1 -1
View File
@@ -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_;
};