Browse files

Merge pull request #1307 from wookiehangover/issue1306

additional documentation for Model.clear
  • Loading branch information...
jashkenas committed May 14, 2012
2 parents 192b1c0 + 9907211 commit 291bfadef6349fe606c63c364b10b074cddf9f94
Showing with 4 additions and 1 deletion.
  1. +4 −1 index.html
@@ -845,7 +845,7 @@ <h2 id="Model">Backbone.Model</h2>
<p id="Model-clear">
<b class="header">clear</b><code>model.clear([options])</code>
<br />
- Removes all attributes from the model. Fires a <tt>"change"</tt> event unless
+ Removes all attributes from the model, including the <tt>id</tt> attribute. Fires a <tt>"change"</tt> event unless
<tt>silent</tt> is passed as an option.
@@ -3583,6 +3583,9 @@ <h2 id="changelog">Change Log</h2>
Calling <tt>clone</tt> on a model now only passes the attributes
for duplication, not a reference to the model itself.
+ <li>
+ Calling <tt>clear</tt> on a model now removes the <tt>id</tt> attribute.
+ </li>

0 comments on commit 291bfad

Please sign in to comment.