[Jifty-commit] r3753 - in jifty/trunk: . lib/Jifty/Plugin

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Jul 31 22:47:45 EDT 2007


Author: sterling
Date: Tue Jul 31 22:47:45 2007
New Revision: 3753

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/Chart.pm
   jifty/trunk/lib/Jifty/Plugin/Chart/Web.pm

Log:
 r8289 at dynpc145:  andrew | 2007-07-31 21:42:52 -0500
 Updated POD and removed an unnecessary extra subroutine call.


Modified: jifty/trunk/lib/Jifty/Plugin/Chart.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart.pm	Tue Jul 31 22:47:45 2007
@@ -6,6 +6,8 @@
 
 use Jifty::Plugin::Chart::Web;
 
+__PACKAGE__->mk_accessors(qw/ renderer /);
+
 =head1 NAME
 
 Jifty::Plugin::Chart - A charting API for Jifty
@@ -54,9 +56,13 @@
     - Chart:
         renderer: Jifty::Plugin::Chart::Renderer::Chart
 
-=cut
+=head1 METHODS
 
-__PACKAGE__->mk_accessors(qw/ renderer /);
+=head2 init
+
+Adds the L<Jifty::Plugin::Chart::Web/chart> method to L<Jifty::Web>.
+
+=cut
 
 sub init {
     my $self = shift;
@@ -72,11 +78,6 @@
     push @Jifty::Web::ISA, 'Jifty::Plugin::Chart::Web';
 }
 
-sub render {
-    my $self = shift;
-    $self->renderer->render(@_);
-}
-
 =head1 SEE ALSO
 
 L<Jifty::Plugin>, L<Jifty::Web>, L<Jifty::Plugin::Chart::Renderer>, L<Jifty::Plugin::Chart::Renderer::Chart>, L<Jifty::Plugin::Chart::View>

Modified: jifty/trunk/lib/Jifty/Plugin/Chart/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart/Web.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart/Web.pm	Tue Jul 31 22:47:45 2007
@@ -107,7 +107,7 @@
     }
 
     # Call the rendering plugin's render method
-    return $plugin->render(%args);
+    return $plugin->renderer->render(%args);
 }
 
 =head1 SEE ALSO


More information about the Jifty-commit mailing list