Spec-Zone.ru › Dart 1

dart:html

Метод insertAllBefore

Node insertAllBefore(Iterable<Node> newNodes, Node refChild)

Вставляет все узлы в этот узел непосредственно перед узлом refChild.

См. также:

  • insertBefore

Исходный код

Node insertAllBefore(Iterable<Node> newNodes, Node refChild) {
  if (newNodes is _ChildNodeListLazy) {
    _ChildNodeListLazy otherList = newNodes;
    if (identical(otherList._this, this)) {
      throw new ArgumentError(newNodes);
    }

    // Optimized route for copying between nodes.
    for (var i = 0, len = otherList.length; i < len; ++i) {
      this.insertBefore(otherList._this.firstChild, refChild);
    }
  } else {
    for (var node in newNodes) {
      this.insertBefore(node, refChild);
    }
  }
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Node/insertAllBefore.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API