$self->set_initial_value($instance, $val);
if ( ref $val && $self->is_weak_ref ) {
- $self->weaken_value($instance);
+ $self->_weaken_value($instance);
}
}
$self->SUPER::set_value($instance, $value);
if ( ref $value && $self->is_weak_ref ) {
- $self->weaken_value($instance);
+ $self->_weaken_value($instance);
}
if ($self->has_trigger) {
}
}
-sub weaken_value {
+sub _weaken_value {
my ( $self, $instance ) = @_;
- my $meta_instance =
- Class::MOP::Class->initialize( blessed($instance) )->get_meta_instance;
+ my $meta_instance = Class::MOP::Class->initialize( blessed($instance) )
+ ->get_meta_instance;
$meta_instance->weaken_slot_value( $instance, $self->name );
}