Confusing use of '!'.

This commit is contained in:
Frederic Junod
2012-03-16 14:23:43 +01:00
parent 20e35b19ff
commit 5557693df1
3 changed files with 3 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, {
*/
draw: function() {
OpenLayers.Control.prototype.draw.apply(this, arguments);
if(!(this.layers.length > 0)) {
if (this.layers.length === 0) {
if (this.map.baseLayer) {
var layer = this.map.baseLayer.clone();
this.layers = [layer];