i before e except after c
This commit is contained in:
parent
6c409bc924
commit
409938d023
@ -4707,7 +4707,7 @@ map.off('click', onClick);</code></pre>
|
||||
|
||||
<h2 id="event-objects">Event objects</h2>
|
||||
|
||||
<p>Event object is an object that you recieve as an argument in a listener function when some event is fired, containing useful information about that event. For example:</p>
|
||||
<p>Event object is an object that you receive as an argument in a listener function when some event is fired, containing useful information about that event. For example:</p>
|
||||
|
||||
<pre><code class="javascript">map.on('click', function(e) {
|
||||
alert(e.latlng); // e is an event object (MouseEvent in this case)
|
||||
|
Loading…
Reference in New Issue
Block a user