was part of skin precedence changes but bungled the command
matthewt [Sat, 9 Feb 2008 17:26:50 +0000 (17:26 +0000)]
lib/Reaction/UI/LayoutSet.pm

index 77a0dac..b424730 100644 (file)
@@ -23,6 +23,7 @@ class LayoutSet which {
     my ($self, $args) = @_;
     my @path = @{$args->{search_path}||[]};
     confess "No skin object provided" unless $args->{skin};
+    confess "No top skin object provided" unless $args->{top_skin};
     $self->_load_file($self->source_file, $args);
     unless ($self->has_widget_class) {
       $self->widget_class($args->{skin}->widget_class_for($self));
@@ -79,7 +80,7 @@ class LayoutSet which {
           $skin = $build_args->{next_skin};
           $super_name = $self->name;
         } else {
-          $skin = $build_args->{skin};
+          $skin = $build_args->{top_skin};
         }
         $self->super($skin->create_layout_set($super_name));
       } elsif ($data =~ /^widget (\S+)/) {