[Jifty-commit] jifty branch, jifty_client, updated. 28e053f4176ff6271b0e26c33fbbbdd43fd96736
Jifty commits
jifty-commit at lists.jifty.org
Mon May 3 04:36:57 EDT 2010
The branch, jifty_client has been updated
via 28e053f4176ff6271b0e26c33fbbbdd43fd96736 (commit)
from 50e791fc2c1e28436019a65b5e8ecb892292d433 (commit)
Summary of changes:
share/web/static/js/jifty_client.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 28e053f4176ff6271b0e26c33fbbbdd43fd96736
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon May 3 16:36:31 2010 +0800
Warn about no _original
diff --git a/share/web/static/js/jifty_client.js b/share/web/static/js/jifty_client.js
index 051a84a..f669b12 100644
--- a/share/web/static/js/jifty_client.js
+++ b/share/web/static/js/jifty_client.js
@@ -18,6 +18,10 @@ Class("JiftyModel", {
var record = this;
var diff = {};
+ if (!record._original) {
+ console.log("This record seems to have no _original field; unable to compute diff.", record);
+ }
+
Joose.O.eachSafe(record._original, function (value, field) {
if (record[field] != value) {
diff[field] = record[field];
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list