projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Remove the no-inline version of attribute initialization code
[gitmo/Mouse.git]
/
lib
/
Mouse
/
Meta
/
Class.pm
diff --git
a/lib/Mouse/Meta/Class.pm
b/lib/Mouse/Meta/Class.pm
index
2ab14cb
..
decbfb1
100644
(file)
--- a/
lib/Mouse/Meta/Class.pm
+++ b/
lib/Mouse/Meta/Class.pm
@@
-238,6
+238,9
@@
sub add_attribute {
Carp::carp(qq{Attribute ($name) of class }.$self->name
.qq{ has no associated methods (did you mean to provide an "is" argument?)});
}
+ if(!Mouse::Util::MOUSE_XS) {
+ delete $self->{_initialize_object};
+ }
return $attr;
}