projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
3eeaf08
)
this only matters for lazy attributes with initializers
Jesse Luehrs [Mon, 25 Apr 2011 07:21:14 +0000 (
02:21
-0500)]
lib/Moose/Meta/Method/Accessor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Method/Accessor.pm
b/lib/Moose/Meta/Method/Accessor.pm
index
8601487
..
6ee2873
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor.pm
+++ b/
lib/Moose/Meta/Method/Accessor.pm
@@
-63,7
+63,7
@@
sub _eval_environment {
# XXX ugh, fix these
$env->{'$attr'} = \$attr
- if $attr->has_initializer;
+ if $attr->has_initializer && $attr->is_lazy;
$env->{'$meta'} = \$self;
return $env;