kartena/Leaflet.EditableHandlers — pull request #8 by zaczheng (2014-04-24 07:29:53+00:00)
Title: Leaflet 0.8-dev fix by removing event bind of undefined method

Using Leaflet 0.8-dev causes _leafet_id undefined error(as mentioned in an issue; sorry coudln't figure out how to attach this PR to the issue). This was caused by change in latest leaflet build but the real problem was in L.CircleEditor.js.

There is line of code in it on line 54
markerCenter.on('click', this._onCenterMarkerClick, this);

This function _onCenterMarkerClick no longer exists.

Previous leaflet versions handled differently attaching event handlers so there was no error even though the script was trying to attach non existent function.