Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b459f8fe

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID b459f8fedcdf0f7589862d11ca7b2fbaf2dfc91e
  • Vorgänger 4baae198
  • Nachfolger a6866e20

ActionBar: nicht »continue«, sondern »next« für Short-Circuit einer Schleife

Unterschiede anzeigen:

SL/Layout/ActionBar.pm
while (my $type = shift(@actions)) {
if (blessed($type) && $type->isa('SL::Layout::ActionBar::Action')) {
push @parsed, $type;
continue;
next;
}
my $descriptor = $class_descriptors{lc $type} || croak("Unknown action type '${type}'");

Auch abrufbar als: Unified diff