Merge branch 'static_definition' of github.com:plainblack/webgui into static_definition

This commit is contained in:
JT Smith 2009-10-22 15:04:00 -05:00
commit 7b0fcd9009
4 changed files with 95 additions and 4 deletions

View file

@ -166,7 +166,10 @@ sub _gen_get {
my $self = shift;
if (@_) {
my $prop = shift;
return $self->$prop;
if ($self->can($prop)) {
return $self->$prop;
}
return undef;
}
my @all_properties = $self->getProperties;
my %props;