[Jifty-commit] r5144 - jifty/branches/jquery/share/web/static/js
Jifty commits
jifty-commit at lists.jifty.org
Wed Feb 20 14:22:06 EST 2008
Author: hlb
Date: Wed Feb 20 14:22:06 2008
New Revision: 5144
Modified:
jifty/branches/jquery/share/web/static/js/jifty.js
Log:
Fix a special case when element does not exist in Jifty.Form.getForm.
Modified: jifty/branches/jquery/share/web/static/js/jifty.js
==============================================================================
--- jifty/branches/jquery/share/web/static/js/jifty.js (original)
+++ jifty/branches/jquery/share/web/static/js/jifty.js Wed Feb 20 14:22:06 2008
@@ -621,6 +621,9 @@
getForm: function (element) {
element = Jifty.$(element);
+ if (element == null)
+ return null;
+
if (element.virtualform)
return element.virtualform;
More information about the Jifty-commit
mailing list