[Pkg-javascript-commits] [backbone] 172/211: better document that hasChanged, previous, etc are only valid during a change event. Issue #240
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:20 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 482a1153490d1dcd58c202a254917047d659d249
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Fri May 27 10:48:07 2011 -0400
better document that hasChanged, previous, etc are only valid during a change event. Issue #240
---
index.html | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/index.html b/index.html
index b2f2b07..1d47d95 100644
--- a/index.html
+++ b/index.html
@@ -939,6 +939,11 @@ ActiveRecord::Base.include_root_in_json = false
Has the model changed since the last <tt>"change"</tt> event? If an <b>attribute</b>
is passed, returns <tt>true</tt> if that specific attribute has changed.
</p>
+
+ <p class="warning">
+ Note that this method, and the following change-related ones,
+ are only useful during the course of a <tt>"change"</tt> event.
+ </p>
<pre>
book.bind("change", function() {
--
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