Skip to content

Commit

Permalink
Clarify add/remove documentation.
Browse files Browse the repository at this point in the history
These controls now support removal.
  • Loading branch information
Mike Bostock committed Aug 31, 2010
1 parent 83fa3ac commit b8aa91f
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 41 deletions.
18 changes: 10 additions & 8 deletions www/docs/arrow.html
Expand Up @@ -95,15 +95,17 @@ <h2>arrow</h2>
<i>arrow</i>.<b>map</b>([<i>x</i>])
</dt>
<dd>
<p>Adds this control to the specified map <i>x</i>, or returns the
current map. This method is typically not called directly, but is
needed to support the map&rsquo;s <a href="map.html#add">add</a>
method.</p>
<p>Adds this control to the specified map <i>x</i>, removes this
control from its current map, or returns the current map. This
method is typically not called directly, but is needed to support
the map&rsquo;s <a href="map.html#add">add</a> method and <a
href="map.html#remove">remove</a> methods.</p>

<p>If the argument <i>x</i> is specified, this control is added to
the given map and returns <tt>this</tt>. If no arguments are
specified, this method returns the current map, which defaults to
null. This method does not currently support removal.</p>
<p>If the argument <i>x</i> is specified, this method returns
<tt>this</tt>. If <i>x</i> is null, this control is removed from its
current map; otherwise, this control is added to the specified map.
If no arguments are specified, this method returns the current map,
which may be null. Whew!</p>
</dd>
</dl>

Expand Down
18 changes: 10 additions & 8 deletions www/docs/dblclick.html
Expand Up @@ -90,15 +90,17 @@ <h2>dblclick</h2>
<i>dblclick</i>.<b>map</b>([<i>x</i>])
</dt>
<dd>
<p>Adds this control to the specified map <i>x</i>, or returns the
current map. This method is typically not called directly, but is
needed to support the map&rsquo;s <a href="map.html#add">add</a>
method.</p>
<p>Adds this control to the specified map <i>x</i>, removes this
control from its current map, or returns the current map. This
method is typically not called directly, but is needed to support
the map&rsquo;s <a href="map.html#add">add</a> method and <a
href="map.html#remove">remove</a> methods.</p>

<p>If the argument <i>x</i> is specified, this control is added to
the given map and returns <tt>this</tt>. If no arguments are
specified, this method returns the current map, which defaults to
null. This method does not currently support removal.</p>
<p>If the argument <i>x</i> is specified, this method returns
<tt>this</tt>. If <i>x</i> is null, this control is removed from its
current map; otherwise, this control is added to the specified map.
If no arguments are specified, this method returns the current map,
which may be null. Whew!</p>
</dd>
</dl>

Expand Down
18 changes: 10 additions & 8 deletions www/docs/drag.html
Expand Up @@ -89,15 +89,17 @@ <h2>drag</h2>
<i>drag</i>.<b>map</b>([<i>x</i>])
</dt>
<dd>
<p>Adds this control to the specified map <i>x</i>, or returns the
current map. This method is typically not called directly, but is
needed to support the map&rsquo;s <a href="map.html#add">add</a>
method.</p>
<p>Adds this control to the specified map <i>x</i>, removes this
control from its current map, or returns the current map. This
method is typically not called directly, but is needed to support
the map&rsquo;s <a href="map.html#add">add</a> method and <a
href="map.html#remove">remove</a> methods.</p>

<p>If the argument <i>x</i> is specified, this control is added to
the given map and returns <tt>this</tt>. If no arguments are
specified, this method returns the current map, which defaults to
null. This method does not currently support removal.</p>
<p>If the argument <i>x</i> is specified, this method returns
<tt>this</tt>. If <i>x</i> is null, this control is removed from its
current map; otherwise, this control is added to the specified map.
If no arguments are specified, this method returns the current map,
which may be null. Whew!</p>
</dd>
</dl>

Expand Down
18 changes: 10 additions & 8 deletions www/docs/hash.html
Expand Up @@ -96,15 +96,17 @@ <h2>hash</h2>
<i>hash</i>.<b>map</b>([<i>x</i>])
</dt>
<dd>
<p>Adds this control to the specified map <i>x</i>, or returns the
current map. This method is typically not called directly, but is
needed to support the map&rsquo;s <a href="map.html#add">add</a>
method.</p>
<p>Adds this control to the specified map <i>x</i>, removes this
control from its current map, or returns the current map. This
method is typically not called directly, but is needed to support
the map&rsquo;s <a href="map.html#add">add</a> method and <a
href="map.html#remove">remove</a> methods.</p>

<p>If the argument <i>x</i> is specified, this control is added to
the given map and returns <tt>this</tt>. If no arguments are
specified, this method returns the current map, which defaults to
null. This method does not currently support removal.</p>
<p>If the argument <i>x</i> is specified, this method returns
<tt>this</tt>. If <i>x</i> is null, this control is removed from its
current map; otherwise, this control is added to the specified map.
If no arguments are specified, this method returns the current map,
which may be null. Whew!</p>
</dd>
</dl>

Expand Down
20 changes: 11 additions & 9 deletions www/docs/wheel.html
Expand Up @@ -95,15 +95,17 @@ <h2>wheel</h2>
<i>wheel</i>.<b>map</b>([<i>x</i>])
</dt>
<dd>
<p>Adds this control to the specified map <i>x</i>, or returns the
current map. This method is typically not called directly, but is
needed to support the map&rsquo;s <a href="map.html#add">add</a>
method.</p>

<p>If the argument <i>x</i> is specified, this control is added to
the given map and returns <tt>this</tt>. If no arguments are
specified, this method returns the current map, which defaults to
null. This method does not currently support removal.</p>
<p>Adds this control to the specified map <i>x</i>, removes this
control from its current map, or returns the current map. This
method is typically not called directly, but is needed to support
the map&rsquo;s <a href="map.html#add">add</a> method and <a
href="map.html#remove">remove</a> methods.</p>

<p>If the argument <i>x</i> is specified, this method returns
<tt>this</tt>. If <i>x</i> is null, this control is removed from its
current map; otherwise, this control is added to the specified map.
If no arguments are specified, this method returns the current map,
which may be null. Whew!</p>
</dd>
</dl>

Expand Down

0 comments on commit b8aa91f

Please sign in to comment.