Revert "Mobile template is not being inherited (#12246)"

... per perlDreamer's additional argument for his original design for this

This reverts commit 2628263384.
This commit is contained in:
Scott Walters 2011-09-07 18:46:18 -04:00
parent 0871ceb56a
commit b05c7ea810
4 changed files with 1 additions and 62 deletions

View file

@ -514,24 +514,5 @@ sub www_view {
return $self->SUPER::www_view;
}
#-------------------------------------------------------------------
=head2 extra_www_add_properties ()
Inherit C<mobileStyleTemplateId> and C<mobileTemplateId> from the parent asset if it is an instance of
L<WebGUI::Asset::Wobject::Layout>.
=cut
sub extra_www_add_properties {
my $self = shift;
my $session = shift;
my $parentAsset = shift;
my $properties = shift;
return unless $parentAsset->isa('WebGUI::Asset::Wobject::Layout');
$properties->{ mobileStyleTemplateId } = $parentAsset->get("mobileStyleTemplateId");
$properties->{ mobileTemplateId } = $parentAsset->get("mobileTemplateId");
}
1;