comparison Lib/IMPL/DOM/Node.pm @ 173:aaab45153411

minor bugfixes
author sourcer
date Wed, 14 Sep 2011 18:59:01 +0400
parents 76515373dac0
children d1676be8afcc
comparison
equal deleted inserted replaced
172:068acfe903c3 173:aaab45153411
327 $this->{$document} = $this->{$parentNode}->document; 327 $this->{$document} = $this->{$parentNode}->document;
328 328
329 # prevent cyclic 329 # prevent cyclic
330 weaken($this->{$document}) if $this->{$document}; 330 weaken($this->{$document}) if $this->{$document};
331 331
332 $_->_updateDocRefs foreach @{$this->{$childNodes}}; 332 map $_->_updateDocRefs, @{$this->{$childNodes}} if $this->{$childNodes};
333 } 333 }
334 334
335 sub _setParent { 335 sub _setParent {
336 my ($this,$node) = @_; 336 my ($this,$node) = @_;
337 337