Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Nov 4, 2013
1 parent 254e6fe commit 399e304
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/control/Control.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
});
Expand Down

0 comments on commit 399e304

Please sign in to comment.