Skip to content

Commit

Permalink
Item14237: Commented out a workaround for a fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Sep 16, 2017
1 parent fd74e8e commit fb3a64b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions core/lib/Foswiki/Class.pm
Original file line number Diff line number Diff line change
Expand Up @@ -251,21 +251,21 @@ sub _fw_extends {
# " $_ descendant"
# foreach qw (Moo::Object Foswiki::Object);
# SMELL Replace this if() with support of build_required flag of a modifier.
if ( $_classData{$target}{options}{callbacks}{use}
|| $_classData{$target}{options}{extensible}{use} )
{

my $trg_ns = Foswiki::getNS($target);

# Install BUILD method if a feature requiring it requested.
# Otherwise feature implementation role will fail to apply cleanly.
#unless ( defined $trg_ns->{BUILD}
# && defined *{ $trg_ns->{BUILD} }{CODE} )
#{
# #say STDERR "Installing BUILD for $target";
# install_modifier( $target, fresh => BUILD => sub { } );
#}
}
#if ( $_classData{$target}{options}{callbacks}{use}
# || $_classData{$target}{options}{extensible}{use} )
#{
#
# my $trg_ns = Foswiki::getNS($target);
#
# # Install BUILD method if a feature requiring it requested.
# # Otherwise feature implementation role will fail to apply cleanly.
# unless ( defined $trg_ns->{BUILD}
# && defined *{ $trg_ns->{BUILD} }{CODE} )
# {
# #say STDERR "Installing BUILD for $target";
# install_modifier( $target, fresh => BUILD => sub { } );
# }
#}

#say STDERR "Applying roles to $target";
__PACKAGE__->_apply_roles($target);
Expand Down

0 comments on commit fb3a64b

Please sign in to comment.