mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
tweaking wording
This commit is contained in:
@@ -925,8 +925,7 @@ alert("Dessert will be " + (new Meal).get('dessert'));
|
||||
<p class="warning">
|
||||
Remember that in JavaScript, objects are passed by reference, so if you
|
||||
include an object as a default value, it will be shared among all instances.
|
||||
Defaults containing objects passed by reference should be defined using a
|
||||
function if you do not wish to share these objects between all instances.
|
||||
Instead, define <b>defaults</b> as a function.
|
||||
</p>
|
||||
|
||||
<p id="Model-toJSON">
|
||||
|
||||
Reference in New Issue
Block a user