X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse.pm;h=7ca9997d04c2b3af492b823ec823d91895044e3e;hb=15b4faa9f83b2f8d62c4d875672ca801f0c89ed1;hp=fb72d26b41d5d147c77df0ed4d3b4040cfb450d6;hpb=56be135d2a8975f724deddf9814446b385985d66;p=gitmo%2FMouse.git diff --git a/lib/Mouse.pm b/lib/Mouse.pm index fb72d26..7ca9997 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -4,7 +4,7 @@ use warnings; use 5.006; use base 'Exporter'; -our $VERSION = '0.27'; +our $VERSION = '0.30'; use Carp 'confess'; use Scalar::Util 'blessed'; @@ -122,7 +122,9 @@ sub init_meta { { no strict 'refs'; no warnings 'redefine'; - *{$class.'::meta'} = sub { $meta }; + *{$class.'::meta'} = sub { + return Mouse::Meta::Class->initialize(ref($_[0]) || $_[0]); + }; } return $meta; @@ -510,7 +512,9 @@ L. =head1 COPYRIGHT AND LICENSE -Copyright 2008 Shawn M Moore. +Copyright 2008-2009 Infinity Interactive, Inc. + +http://www.iinteractive.com/ This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.