Leaflet/Leaflet — pull request #2872 by bullgare (2014-08-26 12:43:36+00:00)
Title: it fixes marker's setIcon method

It fixes marker's setIcon method, that flushes popup's options, which leads to breaking popup's custom offset.
The issue is: during `marker.setIcon()` leaflet updates `marker._popup.offset` with value from icon's setting `popupAnchor`.
And that could happen: [ http://jsbin.com/wipupo/1/edit?js,output](http://jsbin.com/wipupo/1/edit?js,output).
First click on marker - popup is positioned ok.
Then click on a link below and then click on a marker again - it's repositioned.
I think while setting new icon we have to account popup's settings that were made with options explicitly.