projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
923a04b
)
Fix has()
gfx [Thu, 3 Dec 2009 04:11:17 +0000 (13:11 +0900)]
lib/Mouse.pm
patch
|
blob
|
blame
|
history
lib/Mouse/Role.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse.pm
b/lib/Mouse.pm
index
4449900
..
06a13a4
100644
(file)
--- a/
lib/Mouse.pm
+++ b/
lib/Mouse.pm
@@
-54,7
+54,7
@@
sub has {
}
}
else{ # has foo => (...)
- $meta->add_attribute($_ => @_);
+ $meta->add_attribute($name => @_);
}
return;
}
diff --git
a/lib/Mouse/Role.pm
b/lib/Mouse/Role.pm
index
56b90b7
..
81208d5
100644
(file)
--- a/
lib/Mouse/Role.pm
+++ b/
lib/Mouse/Role.pm
@@
-49,7
+49,7
@@
sub has {
}
}
else{ # has foo => (...)
- $meta->add_attribute($_ => @_);
+ $meta->add_attribute($name => @_);
}
return;
}