projects
/
gitmo/MooseX-Singleton.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Replicate triggers fix from Moose.pm (gah, this immutable stuff is
[gitmo/MooseX-Singleton.git]
/
lib
/
MooseX
/
Singleton
/
Meta
/
Method
/
Constructor.pm
diff --git
a/lib/MooseX/Singleton/Meta/Method/Constructor.pm
b/lib/MooseX/Singleton/Meta/Method/Constructor.pm
index
4c866e9
..
b4dbc25
100644
(file)
--- a/
lib/MooseX/Singleton/Meta/Method/Constructor.pm
+++ b/
lib/MooseX/Singleton/Meta/Method/Constructor.pm
@@
-30,6
+30,7
@@
sub intialize_body {
$self->_generate_slot_initializer($_)
} 0 .. (@{$self->attributes} - 1));
+ $source .= ";\n" . $self->_generate_triggers();
$source .= ";\n" . $self->_generate_BUILDALL();
$source .= ";\n" . 'return ${$existing} = $instance';