support the possibility of an inner vp existing
groditi [Thu, 25 Feb 2010 23:48:02 +0000 (23:48 +0000)]
lib/Reaction/UI/Widget/Action.pm

index 3d8b1c4..cae45ab 100644 (file)
@@ -48,6 +48,14 @@ implements fragment cancel_button_fragment {
   }
 };
 
+implements fragment maybe_inner {
+  if( my $inner = $_{viewport}->inner ){
+    arg '_' => $inner;
+    render 'viewport';
+  }
+};
+
+
 __PACKAGE__->meta->make_immutable;