Mercurial > pub > Impl
comparison Lib/IMPL/DOM/Node.pm @ 43:009aa9ca2e48
merge
| author | Sergey |
|---|---|
| date | Thu, 07 Jan 2010 15:41:49 +0300 |
| parents | d660fb38b7cc |
| children | 16ada169ca75 |
comparison
equal
deleted
inserted
replaced
| 42:4ff27cd051e3 | 43:009aa9ca2e48 |
|---|---|
| 206 my ($this) = @_; | 206 my ($this) = @_; |
| 207 | 207 |
| 208 # this method is called by the parent node on his children, so we need no to check parent | 208 # this method is called by the parent node on his children, so we need no to check parent |
| 209 $this->{$document} = $this->{$parentNode}->document; | 209 $this->{$document} = $this->{$parentNode}->document; |
| 210 | 210 |
| 211 # prevetn ciclyc | 211 # prevent cyclic |
| 212 weaken($this->{$document}) if $this->{$document}; | 212 weaken($this->{$document}) if $this->{$document}; |
| 213 | 213 |
| 214 $_->_updateDocRefs foreach @{$this->{$childNodes}}; | 214 $_->_updateDocRefs foreach @{$this->{$childNodes}}; |
| 215 } | 215 } |
| 216 | 216 |
