mirror of
https://github.com/Mibew/CanteenHTML5.git
synced 2025-02-05 13:34:42 +03:00
Fix NodeContainer::addChildAt method
This commit is contained in:
parent
c5d4f89045
commit
72c2523ba7
@ -83,7 +83,7 @@ namespace Canteen\HTML5
|
|||||||
{
|
{
|
||||||
array_unshift($this->_children, $childNode);
|
array_unshift($this->_children, $childNode);
|
||||||
}
|
}
|
||||||
else if ($index > $len)
|
else if ($index > (count($this->_children) - 1))
|
||||||
{
|
{
|
||||||
$this->addChild($childNode);
|
$this->addChild($childNode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user