CloudMade/Leaflet — Issue #544: L.Circle & moveend Event
Author: zedd45
Created: 2012-02-29 03:36:48+00:00
State: open

it appears that the check for empty in L.Circle omits a check for this._map before utilizing it. This causes a JS error when events listeners are bound to "moveend"

If I'm understanding the code correctly, it looks like this might fix it:

```javascript
_checkIfEmpty: function () {
if (!this._map) {
return true;
}
...
```