From: Fuji, Goro Date: Sat, 25 Sep 2010 10:16:59 +0000 (+0900) Subject: Tweaks X-Git-Tag: 0.72~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ab688693550bf12a9e9618948951d7e6bd317a75;p=gitmo%2FMouse.git Tweaks --- diff --git a/lib/Mouse/Meta/Method/Constructor.pm b/lib/Mouse/Meta/Method/Constructor.pm index c45fd9c..b3e9bb4 100644 --- a/lib/Mouse/Meta/Method/Constructor.pm +++ b/lib/Mouse/Meta/Method/Constructor.pm @@ -13,7 +13,7 @@ sub _generate_constructor { my $buildall = $class->_generate_BUILDALL($metaclass); my $buildargs = $class->_generate_BUILDARGS($metaclass); - + my $initializer = $class->_generate_initialize_object($metaclass); my $source = sprintf(<<'EOT', __LINE__, __FILE__, $metaclass->name, $buildargs, $buildall); #line %d %s package %s; @@ -24,7 +24,7 @@ sub _generate_constructor { # BUILDARGS %s; my $instance = bless {}, $class; - $metaclass->_initialize_object($instance, $args, 0); + $metaclass->$initializer($instance, $args, 0); # BUILDALL %s; return $instance;