minor cleanup

This commit is contained in:
Vladimir Agafonkin 2013-11-04 13:15:15 +02:00
parent 254e6fe6b9
commit 399e304bb2

View File

@ -69,10 +69,8 @@ L.Control = L.Class.extend({
},
_refocusOnMap: function () {
var map = this._map;
if (map) {
map.getContainer().focus();
if (this._map) {
this._map.getContainer().focus();
}
}
});