Remove the no-inline version of attribute initialization code
[gitmo/Mouse.git] / lib / Mouse / Meta / Class.pm
index 2ab14cb..decbfb1 100644 (file)
@@ -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;
 }