Changeset 7130

Show
Ignore:
Timestamp:
02/25/08 19:43:21 (16 months ago)
Author:
chiba
Message:

lang/perl/DBIx-Class-Tree-NestedSet?:

  • fixed misspelled method name (is_reaf => is_leaf)
  • fixed attach_child & attach_sbling returned last node result
    (Thanks to Kevin Baker)
Location:
lang/perl/DBIx-Class-Tree-NestedSet/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/DBIx-Class-Tree-NestedSet/trunk/Changes

    r3385 r7130  
    11Revision history for Perl extension DBIx::Class::Tree::NestedSet 
     2 
     30.03  Mon Feb 25 19:31:00 2008 
     4        - fixed misspelled method name (is_reaf => is_leaf) 
     5        - fixed attach_child & attach_sbling returned last node result 
     6          (Thanks to Kevin Baker) 
    27 
    380.02  Fri Dec 21 06:34:20 2007 
  • lang/perl/DBIx-Class-Tree-NestedSet/trunk/lib/DBIx/Class/Tree/NestedSet.pm

    r3385 r7130  
    44use warnings; 
    55use 5.8.1; 
    6 our $VERSION = '0.02'; 
     6our $VERSION = '0.03'; 
    77 
    88use base qw/ DBIx::Class /; 
     
    155155        if ($found) { 
    156156            my $children = $self->children; 
    157             my $self_parent = $self->parent; 
    158157            while (my $child = $children->next) { 
    159158                $child->parent( $self_parent ); 
     
    241240    my $return = 1; 
    242241    foreach my $child (@_) { 
    243         $return = $child->reparent( $self ); 
     242        $return &= $child->reparent( $self ); 
    244243    } 
    245244 
     
    284283    my $return = 1; 
    285284    foreach my $node (@_) { 
    286         $return = $node->reparent( $self->parent ); 
     285        $return &= $node->reparent( $self->parent ); 
    287286    } 
    288287    return $return; 
    289288} 
    290289 
    291 sub is_reaf { 
     290sub is_leaf { 
    292291    my $self = shift; 
    293292 
     
    305304    my $self = shift; 
    306305 
    307     return ( $self->is_reaf or $self->is_root ) ? 0 : 1; 
     306    return ( $self->is_leaf or $self->is_root ) ? 0 : 1; 
    308307} 
    309308