/[Frey]/branches/zimbardo/lib/Frey/Web.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/zimbardo/lib/Frey/Web.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1064 by dpavlin, Mon Apr 27 18:40:41 2009 UTC revision 1065 by dpavlin, Mon Apr 27 18:43:18 2009 UTC
# Line 194  sub add_head { Line 194  sub add_head {
194    
195  }  }
196    
 my $seen;  
   
197  sub _add_css_js {  sub _add_css_js {
198          my ( $self, $what, $content ) = @_;          my ( $self, $what, $content ) = @_;
199    
200          my $md5 = md5( $content );          my $md5 = md5( $content );
201          return if $seen->{$what}->{$md5}++;          return if $self->{_add_css_js_seen}->{$what}->{$md5}++;
202    
203          my $tag  = $what eq 'css' ? 'style'    : 'script';          my $tag  = $what eq 'css' ? 'style'    : 'script';
204          my $type = $what eq 'css' ? 'text/css' : 'text/javascript';          my $type = $what eq 'css' ? 'text/css' : 'text/javascript';

Legend:
Removed from v.1064  
changed lines
  Added in v.1065

  ViewVC Help
Powered by ViewVC 1.1.26