Use !!expr and not the verbose expr !== null
This addresses review comments by @tschaub.
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user