- Fix properties interitance for GrabberBase and GetterBase
authorRalf Ertzinger <sun@lain.camperquake.de>
Tue, 15 Apr 2008 19:18:04 +0000 (21:18 +0200)
committerRalf Ertzinger <sun@lain.camperquake.de>
Tue, 15 Apr 2008 19:18:04 +0000 (21:18 +0200)
videosite/Base.pm
videosite/GetterBase.pm
videosite/GrabberBase.pm

index cad4374..d8a4e98 100644 (file)
@@ -8,7 +8,7 @@ use Data::Dumper;
 
 sub new {
     my $class = shift;
-    my $self = {'_DEBUG' => 0, '_OUT' => sub {}};
+    my $self = {'_DEBUG' => 0, '_OUT' => sub {print shift}};
 
     bless($self, $class);
 
index c391ed8..a8130db 100644 (file)
@@ -10,7 +10,9 @@ use strict;
 
 sub new {
     my $class = shift;
-    my $self = {
+    my $self = $class->SUPER::new();
+
+    $self = {%{$self},
         NAME => 'FlashGetter',
         TYPE => 'getter'
     };
index eec5a33..ad0b1e7 100644 (file)
@@ -9,7 +9,9 @@ use strict;
 
 sub new {
     my $class = shift;
-    my $self = {
+    my $self = $class->SUPER::new();
+
+    $self = {%{$self},
         NAME => 'FlashGrab',
         TYPE => 'grabber',
         PATTERNS => [],