| Index: tools/dom/templates/html/impl/impl_Node.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate
|
| index 85f7e12c5833362c4d1c2c469124437cd16be284..830714911d3c7cd90aa1f49e69c050f15c38188b 100644
|
| --- a/tools/dom/templates/html/impl/impl_Node.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
|
| @@ -83,8 +83,12 @@ $endif
|
| }
|
|
|
| void insertAll(int index, Iterable<Node> iterable) {
|
| - var item = this[index];
|
| - _this.insertAllBefore(iterable, item);
|
| + if (index == length) {
|
| + addAll(iterable);
|
| + } else {
|
| + var item = this[index];
|
| + _this.insertAllBefore(iterable, item);
|
| + }
|
| }
|
|
|
| void setAll(int index, Iterable<Node> iterable) {
|
|
|