Fix clone_object() to ignore hehaviours without init args
[gitmo/Mouse.git] / lib / Mouse / Meta / Class.pm
index 80f7af7..3b0dc31 100644 (file)
@@ -238,7 +238,7 @@ sub clone_object {
         || $class->throw_error("You must pass an instance of the metaclass (" . $class->name . "), not ($object)");
 
     my $cloned = bless { %$object }, ref $object;
-    $class->_initialize_object($cloned, $args);
+    $class->_initialize_object($cloned, $args, 1);
 
     return $cloned;
 }