CloudMade/Leaflet — pull request #657 by ericmmartinez (2012-05-02 00:11:45+00:00)
Title: Patch for L.Control#setPosition

Previous code resulted in errors.

First, by setting this.options.position before removing the control from the map, the map was looking in the wrong control container for the control to be removed.

Second, during the call to ```removeControl```, ```this._map``` is unset so the subsequent call to ```addControl``` would always fail since ```this._map``` is undefined.

The proposed may not be perfect but it at least works.