Defaults in flags()
David Wheeler <[email protected]> Wed, 9 Aug 2006 01:21:20 -0400
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
Fellow Masonites,
Shouldn't the flags() method in Component.pm have a default value set
for the inherit flag?
Index: lib/HTML/Mason/Component.pm
===================================================================
--- lib/HTML/Mason/Component.pm (revision 3767)
+++ lib/HTML/Mason/Component.pm (working copy)
@@ -301,9 +301,9 @@
#
sub flag {
my ($self,$name) = @_;
- my %flag_defaults =
- (
- );
+ my %flag_defaults = (
+ inherit => 1,
+ );
if (exists($self->{flags}->{$name})) {
return $self->{flags}->{$name};
} elsif (exists($flag_defaults{$name})) {
Thanks,
David
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642