Fixup some pre-(make test) typos.
Guillermo Roditi [Mon, 23 Jun 2008 20:58:57 +0000 (20:58 +0000)]
r16976@martha (orig r7499):  konobi | 2008-03-14 22:20:06 -0400

lib/Catalyst/Component.pm
lib/Catalyst/DispatchType/Regex.pm

index 52736f4..9cbe331 100644 (file)
@@ -8,7 +8,7 @@ has _config  => (
                  is => 'rw',
                  isa => 'HashRef',
                  required => 1,
-                 default => {}
+                 default => sub { {} }
                 );
 
 class_has _plugins => ( is => 'rw' );
@@ -66,9 +66,9 @@ around new => sub {
 
     # Temporary fix, some components does not pass context to constructor
     my $arguments = ( ref( $_[-1] ) eq 'HASH' ) ? $_[-1] : {};
-    my $merged = $self->merge_config_hashes( $self->config, $arguments ) );
+    my $merged = $self->merge_config_hashes( $self->config, $arguments );
     $orig->( $self, $merged );
-}
+};
 
 sub COMPONENT {
     my ( $self, $c ) = @_;
index af9a11a..0b2264d 100644 (file)
@@ -66,7 +66,7 @@ override match => sub {
     }
 
     return 0;
-}
+};
 
 =head2 $self->register( $c, $action )