From: gfx Date: Mon, 21 Sep 2009 03:40:23 +0000 (+0900) Subject: A tiny tweak X-Git-Tag: 0.32~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4f9945f5a128e120049ce8a7a30cf469d1568b9b;p=gitmo%2FMouse.git A tiny tweak --- diff --git a/lib/Mouse/Meta/Class.pm b/lib/Mouse/Meta/Class.pm index e2defbe..7d4cdcd 100644 --- a/lib/Mouse/Meta/Class.pm +++ b/lib/Mouse/Meta/Class.pm @@ -228,9 +228,8 @@ sub _install_modifier { # replace this method itself :) { - no strict 'refs'; no warnings 'redefine'; - *{__PACKAGE__ . '::_install_modifier'} = sub { + *_install_modifier = sub { my ( $self, $into, $type, $name, $code ) = @_; $modifier->( $into,