[Jifty-commit] r2646 - in jifty/trunk: lib/Jifty/Web/Form
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Jan 27 03:18:05 EST 2007
Author: jesse
Date: Sat Jan 27 03:18:05 2007
New Revision: 2646
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web/Form/Field.pm
Log:
r21503 at hualien: jesse | 2007-01-27 12:12:09 +0800
* We were still using deprecated 'length' api when constructing form fields
Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm Sat Jan 27 03:18:05 2007
@@ -489,7 +489,7 @@
$field .= qq! id="@{[ $self->element_id ]}"!;
$field .= qq! value="@{[Jifty->web->escape($self->current_value)]}"! if defined $self->current_value;
$field .= $self->_widget_class;
- $field .= qq! size="@{[ $self->max_length() ]}" maxlength="@{[ $self->length() ]}"! if ($self->max_length());
+ $field .= qq! size="@{[ $self->max_length() ]}" maxlength="@{[ $self->max_length() ]}"! if ($self->max_length());
$field .= qq! autocomplete="off"! if defined $self->disable_autocomplete;
$field .= " " .$self->other_widget_properties;
$field .= qq! />\n!;
@@ -712,9 +712,11 @@
}
+=for private
+
=head2 length
-Deprecated synonym to ->max_length(). Do not use; may go away soon.
+# Deprecated API
=cut
More information about the Jifty-commit
mailing list