Cleanup L.DomUtil docs (see #3098).

This commit is contained in:
Iván Sánchez Ortega 2015-06-10 13:13:16 +02:00 committed by Vladimir Agafonkin
parent b64655535a
commit fdddb648e8

View File

@ -5249,17 +5249,19 @@ Popups will also be automatically opened when the layer is clicked on and closed
<td><code><b>off</b>(
<nobr>&lt;HTMLElement&gt; <i>el</i></nobr>,
<nobr>&lt;String&gt; <i>types</i></nobr>,
<nobr>&lt;Function&gt; <i>fn</i> )</nobr>
<nobr>&lt;Function&gt; <i>fn</i></nobr>,
<nobr>&lt;Object&gt; <i>context?</i> )</nobr>
</code></td>
<td><code><span class="keyword">this</span></code></td>
<td>Removes the event listener <code>fn</code> from the element, for the DOM event types in <code>types</code> (a space-separated list). <i>fn</i> must be equal to the function currently listening to the event for it to be removed.</td>
<td>Removes the event listener <code>fn</code> from the element, for the DOM event types in <code>types</code> (a space-separated list). Both <code>fn</code> and <code>context</code> must be equal to the function and context used previously on a <a href="#domevent-on">L.DomEvent.on</a> call.</td>
</tr>
<tr>
<td><code><b>removeListener</b>(
<nobr>&lt;HTMLElement&gt; <i>el</i></nobr>,
<nobr>&lt;String&gt; <i>types</i></nobr>,
<nobr>&lt;Function&gt; <i>fn</i> )</nobr>
<nobr>&lt;Function&gt; <i>fn</i></nobr>,
<nobr>&lt;Object&gt; <i>context?</i> )</nobr>
</code></td>
<td><code><span class="keyword">this</span></code></td>