fix logic - we might not actually have a yahoo map layer here.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 17 Jun 2010 05:21:22 +0000 (01:21 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 17 Jun 2010 05:21:22 +0000 (01:21 -0400)
horde/js/hordemap/yahoo.js

index b9d7408..6b164d3 100644 (file)
@@ -43,7 +43,8 @@ HordeMap.Geocoder.Yahoo = Class.create(
                     this._map = mo;
                 }
             }
-        } else {
+        }
+        if (!this._map) {
             this._map = new YMap(new Element('div'));
         }
     },