[Jifty-commit] r6665 - in jifty/trunk: lib/Jifty/Web/Form
Jifty commits
jifty-commit at lists.jifty.org
Wed Mar 18 15:38:21 EDT 2009
Author: alexmv
Date: Wed Mar 18 15:38:21 2009
New Revision: 6665
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web/Form/Clickable.pm
Log:
r43409 at kohr-ah: chmrr | 2009-03-18 15:37:43 -0400
->onclick actually is stored in {_onclick}
Modified: jifty/trunk/lib/Jifty/Web/Form/Clickable.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Clickable.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Clickable.pm Wed Mar 18 15:38:21 2009
@@ -492,7 +492,7 @@
sub _defined_accessor_values {
my $self = shift;
# Note we're walking around Class::Accessor here
- return { map { my $val = $self->{$_}; defined $val ? ( $_ => $val ) : () }
+ return { map { my $val = $self->{"_$_"} || $self->{$_}; defined $val ? ( $_ => $val ) : () }
$self->SUPER::accessors };
}
More information about the Jifty-commit
mailing list