projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9090e5f
)
suppress warnings when we use around and has "+..."
Dann [Sat, 10 Jan 2009 17:36:05 +0000 (17:36 +0000)]
Changes
patch
|
blob
|
blame
|
history
lib/Mouse/Meta/Class.pm
patch
|
blob
|
blame
|
history
diff --git
a/Changes
b/Changes
index
f469d80
..
6c60a59
100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-11,6
+11,8
@@
Revision history for Mouse
* class_type shouldn't load the class (Moose compat; no easy fix :/)
+ * suppress warninsgs when we use around and has '+...'
+
0.14 Sat Dec 20 16:53:05 2008
* POD fix
diff --git
a/lib/Mouse/Meta/Class.pm
b/lib/Mouse/Meta/Class.pm
index
6f6feab
..
8668990
100644
(file)
--- a/
lib/Mouse/Meta/Class.pm
+++ b/
lib/Mouse/Meta/Class.pm
@@
-63,6
+63,7
@@
sub add_method {
my $pkg = $self->name;
no strict 'refs';
+ no warnings 'redefine';
$self->{'methods'}->{$name}++; # Moose stores meta object here.
*{ $pkg . '::' . $name } = $code;
}