Changeset 8707 for lang/perl/Class-Component
- Timestamp:
- 04/03/08 06:57:15 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Class-Component/trunk/lib/Class/Component/Plugin.pm
r8696 r8707 60 60 61 61 my $is_attribute_detect_cache = $self->is_class_component_plugin_attribute_detect_cache; 62 my $class = ref $self; 62 63 for my $data (@{ $self->__methods_cache }) { 63 64 for my $attr (@{ $data->{attrs} }) { 64 65 my($key, $value); 65 my $cache_key = sprintf '%s::%s', ref($self), $attr; 66 if ($is_attribute_detect_cache && $attribute_detect_cache{$cache_key}) { 67 ($key, $value) = @{ $attribute_detect_cache{$cache_key} }; 66 my $cache_key = "$class\::$attr"; 67 my $attr_res = $attribute_detect_cache{$cache_key}; 68 if ($is_attribute_detect_cache && $attr_res) { 69 ($key, $value) = ( $attr_res->[0], $attr_res->[1] ); 68 70 } else { 69 71 next unless ($key, $value) = $self->class_component_plugin_attribute_detect($attr, $cache_key);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)