Change get_property_list from an attribute to a method in Definition::Meta::Class.

This commit is contained in:
Colin Kuskie 2009-12-10 15:54:49 -08:00
parent c2fca8e178
commit 849e8d4037

View file

@ -52,19 +52,15 @@ Returns the name of all properties, in the order they were created in the Defini
=cut
has 'get_property_list' => (
is => 'ro',
default => sub {
my $self = shift;
my @properties =
map { $_->name }
sort { $a->insertion_order <=> $b->insertion_order }
grep { $_->meta->isa('WebGUI::Definition::Meta::Property') }
$self->meta->get_all_attributes;
return \@properties;
},
);
sub get_property_list {
my $self = shift;
my @properties =
map { $_->name }
sort { $a->insertion_order <=> $b->insertion_order }
grep { $_->meta->isa('WebGUI::Definition::Meta::Property') }
$self->meta->get_all_attributes;
return \@properties;
}
#-------------------------------------------------------------------