Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Make reference to Renderer's parent a weak_ref to prevent circular
Browse files Browse the repository at this point in the history
dependencies.
  • Loading branch information
gphat committed Apr 1, 2014
1 parent ad77d7d commit d1ce5f9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/Chart/Clicker/Renderer.pm
Expand Up @@ -12,7 +12,7 @@ Chart::Clicker::Renderer represents the plot of the chart.
=head1 SYNOPSIS
my $renderer = Chart::Clicker::Renderer::Foo->new;
=attr additive
Read-only value that informs Clicker that this renderer uses the combined ranges
Expand All @@ -25,7 +25,11 @@ results.

has 'additive' => ( is => 'rw', isa => 'Bool', default => 0 );

has 'clicker' => ( is => 'rw', isa => 'Chart::Clicker' );
has 'clicker' => (
is => 'rw',
isa => 'Chart::Clicker',
weak_ref => 1
);

=attr context
Expand All @@ -45,4 +49,4 @@ __PACKAGE__->meta->make_immutable;

no Moose;

1;
1;

0 comments on commit d1ce5f9

Please sign in to comment.