+ - Switch to testing for Mouse::Util->can('find_meta') to avoid
+ exploding on ancient Mouse installs
- Fix loading order bug that results in _install_coderef being treated
as indirect object notation
no warnings 'once'; # piss off. -- mst
$Moo::HandleMoose::MOUSE{$target} = [
grep defined, map Mouse::Util::find_meta($_), @_
- ] if $INC{"Mouse.pm"};
+ ] if Mouse::Util->can('find_meta');
}
sub _maybe_reset_handlemoose {
and $meta = Class::MOP::class_of($role)
)
or (
- $INC{"Mouse.pm"}
+ Mouse::Util->can('find_meta')
and $meta = Mouse::Util::find_meta($role)
)
) {