diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-07-11 01:02:45 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-07-11 01:02:45 +0000 |
commit | b5a45848e42a559b828c46167f98c507a3ac8fc3 (patch) | |
tree | 487cf130535ca42673b664916d76143fe9ef55d9 | |
parent | 99535516a8275b3c98a90cb037d2c88219c2b756 (diff) | |
download | reaction-b5a45848e42a559b828c46167f98c507a3ac8fc3.tar.gz reaction-b5a45848e42a559b828c46167f98c507a3ac8fc3.zip |
do not override custom location in push_viewport
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | lib/Reaction/UI/FocusStack.pm | 11 |
2 files changed, 6 insertions, 7 deletions
@@ -9,7 +9,7 @@ Revision history for Reaction - Add 'action' attribute to Action viewport - Adapt widget and layout to changes - Add example of explicitly stating action to ComponentUI - + - Don't override custom location in push_viewport 0.002000 - 29 Apr 2008 - Update CheckUniques role to use around instead of overrides - Stop using ACCEPT_CONTEXT, use InstancePerContext instead diff --git a/lib/Reaction/UI/FocusStack.pm b/lib/Reaction/UI/FocusStack.pm index 0af90a8..cd218da 100644 --- a/lib/Reaction/UI/FocusStack.pm +++ b/lib/Reaction/UI/FocusStack.pm @@ -25,12 +25,11 @@ sub push_viewport { $loc = join('-', $self->loc_prefix, $loc); } my $vp = $class->new( - %create, - location => $loc, - focus_stack => $self, - (defined $tail ? ( outer => $tail ) : ()), # XXX possibly a bug in - #immutable? - ); + location => $loc, + %create, + focus_stack => $self, + (defined $tail ? ( outer => $tail ) : ()), # XXX possibly a bug in immutable? + ); if ($tail) { # if we already have a tail (non-empty vp stack) $tail->inner($vp); # set the current tail's inner vp to the new vp } else { # else we're currently an empty stack |