Skip to content

Commit

Permalink
Set attribute instead of property.
Browse files Browse the repository at this point in the history
  • Loading branch information
braddunbar committed Apr 23, 2014
1 parent 321e2f2 commit 8b29778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ <h2 id="Model">Backbone.Model</h2>
<pre class="runnable">
Backbone.sync = function(method, model) {
alert(method + ": " + JSON.stringify(model));
model.id = 1;
model.set('id', 1);
};

var book = new Backbone.Model({
Expand Down

0 comments on commit 8b29778

Please sign in to comment.