[Pkg-javascript-commits] [backbone] 130/211: Adding a note about using Collection.create on a model that has been saved server-side.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.0
in repository backbone.
commit 089aeb83853ef8f283725bbc413725e0bdd9f8fe
Author: Samuel Clay <samuel at ofbrooklyn.com>
Date: Mon Apr 25 15:51:59 2011 -0400
Adding a note about using Collection.create on a model that has been saved server-side.
---
index.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 77d37db..2bc6c37 100644
--- a/index.html
+++ b/index.html
@@ -1381,7 +1381,8 @@ Accounts.fetch();
<p>
You can pass in either an object literal or an existing model object. If you use
an existing model, it will have its collection set to this collection, thereby
- removing it from any previous collection.
+ removing it from any previous collection. However, the model should not have been
+ saved to the server. Otherwise, use <tt>Collection.add</tt>.
</p>
<pre>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list