Mercurial > pub > Impl
comparison Lib/IMPL/DOM/Node.pm @ 30:dd4d72600c69
ORM in works
| author | Sergey | 
|---|---|
| date | Tue, 03 Nov 2009 16:31:47 +0300 | 
| parents | 7f00786f8210 | 
| children | a8086f85a571 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 29:37160f7c8edb | 30:dd4d72600c69 | 
|---|---|
| 40 $node->_setParent( $this ); | 40 $node->_setParent( $this ); | 
| 41 | 41 | 
| 42 return $node; | 42 return $node; | 
| 43 } | 43 } | 
| 44 | 44 | 
| 45 sub appendNode { | 45 sub appendChild { | 
| 46 my ($this,$node) = @_; | 46 my ($this,$node) = @_; | 
| 47 | 47 | 
| 48 die new IMPL::InvalidOperationException("You can't insert the node to itselft") if $this == $node; | 48 die new IMPL::InvalidOperationException("You can't insert the node to itselft") if $this == $node; | 
| 49 | 49 | 
| 50 $node->{$parentNode}->removeNode($node) if ($node->{$parentNode}); | 50 $node->{$parentNode}->removeNode($node) if ($node->{$parentNode}); | 
| 53 $children->Append($node); | 53 $children->Append($node); | 
| 54 | 54 | 
| 55 $node->_setParent( $this ); | 55 $node->_setParent( $this ); | 
| 56 | 56 | 
| 57 return $node; | 57 return $node; | 
| 58 } | |
| 59 | |
| 60 sub appendNode { | |
| 61 goto &appendChild; | |
| 58 } | 62 } | 
| 59 | 63 | 
| 60 sub appendRange { | 64 sub appendRange { | 
| 61 my ($this,@range) = @_; | 65 my ($this,@range) = @_; | 
| 62 | 66 | 
