[Jifty-commit] r6763 - jifty/trunk/lib/Jifty/Web/Form
Jifty commits
jifty-commit at lists.jifty.org
Thu Apr 9 18:40:59 EDT 2009
Author: alexmv
Date: Thu Apr 9 18:40:58 2009
New Revision: 6763
Modified:
jifty/trunk/lib/Jifty/Web/Form/Element.pm
Log:
Make mk_normalising_accessor an internal method
Modified: jifty/trunk/lib/Jifty/Web/Form/Element.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Element.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Element.pm Thu Apr 9 18:40:58 2009
@@ -207,9 +207,9 @@
return $self;
}
-__PACKAGE__->mk_normalising_accessor($_) for __PACKAGE__->handlers;
+__PACKAGE__->_mk_normalising_accessor($_) for __PACKAGE__->handlers;
-sub mk_normalising_accessor {
+sub _mk_normalising_accessor {
my ($class, $accessor) = @_;
my $internal_method = "_$accessor";
no strict 'refs';
@@ -361,6 +361,12 @@
}
+=head2 handlers_used
+
+Returns the names of javascript handlers which exist for this element.
+
+=cut
+
sub handlers_used {
my $self = shift;
return keys %{$self->{handlers_used}};
More information about the Jifty-commit
mailing list