projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9acd019
)
Fix the order that BUILD methods are called in (thanks Robert Boone)
Shawn M Moore [Tue, 10 Jun 2008 19:11:56 +0000 (19:11 +0000)]
lib/Mouse/Object.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Object.pm
b/lib/Mouse/Object.pm
index
70ad475
..
265787a
100644
(file)
--- a/
lib/Mouse/Object.pm
+++ b/
lib/Mouse/Object.pm
@@
-74,7
+74,7
@@
sub BUILDALL {
no strict 'refs';
- for my $class ($self->meta->linearized_isa) {
+ for my $class (reverse $self->meta->linearized_isa) {
my $code = *{ $class . '::BUILD' }{CODE}
or next;
$code->($self, @_);