Skip to content

Commit

Permalink
Updated documentation for model.changed
Browse files Browse the repository at this point in the history
* Removed a reference to the obsolete model.change.
* Added (IMHO) missing info about model.hasChanged.
  • Loading branch information
Ore4444 committed Jan 23, 2013
1 parent 9f546ec commit 160b27f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1092,8 +1092,10 @@ <h2 id="Model">Backbone.Model</h2>
<br />
The <b>changed</b> property is the internal hash containing all the attributes
that have changed since the last <tt>"change"</tt> event was triggered.
Please do not update <b>changed</b> directly. Its state is maintained internally
by <a href="#Model-set">set</a> and <a href="#Model-change">change</a>.
There's no need to update <b>changed</b> directly since its state is internally maintained
by <a href="#Model-set">set</a>>.
Use <a href="#Model-hasChanged">hasChanged</a> to determine if the model has changed since
the last "change" event.
A copy of <b>changed</b> can be acquired from
<a href="#Model-changedAttributes">changedAttributes</a>.
</p>
Expand Down

0 comments on commit 160b27f

Please sign in to comment.