Leaflet : Remove EasyButton Control from leaflet map
<p>I have a leaflet map where I display tons of markers, and an easybutton control that I add sometimes on my map. When the user click on it I want to remove it from the map.
But when I click on it there is always an error from easybutton.js : ' TypeError: this._map is null '. This error freez my page on IE...</p>

<p>This is my code when I add my control and the event onclick on it where I want to remove it.</p>

<pre><code> backButton = L.easyButton('&lt;span class="backButton"&gt;&amp;larrhk;&lt;/span&gt;', function (btn, map) {

                //evenement on click button


                map.removeControl(backButton);



            },
            { position: 'bottomright' });

            map.addControl(backButton);
</code></pre>

<p>I tested with "this" and "btn" instead of backButon in map.removeControl() but same error . I also tested with backButton.removeFrom(map) ..</p>

<p>Thanks </p>