| 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 04b03cd9542a1cb9129e09e4e72808bfa11fddfe..287151fb05929ae1a3f423108b80287914afe28f 100644
|
| --- a/tools/dom/templates/html/impl/impl_Node.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
|
| @@ -57,11 +57,12 @@ $endif
|
|
|
| void addAll(Iterable<Node> iterable) {
|
| if (iterable is _ChildNodeListLazy) {
|
| - if (!identical(iterable._this, _this)) {
|
| + _ChildNodeListLazy otherList = iterable;
|
| + if (!identical(otherList._this, _this)) {
|
| // Optimized route for copying between nodes.
|
| - for (var i = 0, len = iterable.length; i < len; ++i) {
|
| + for (var i = 0, len = otherList.length; i < len; ++i) {
|
| // Should use $dom_firstChild, Bug 8886.
|
| - _this.append(iterable[0]);
|
| + _this.append(otherList[0]);
|
| }
|
| }
|
| return;
|
|
|