src/core/util/util.js
function reconnectScope(scope) {
      if (!scope) return;

      // we can't disconnect the root node or scope already disconnected
      if (scope.$root === scope) return;
      if (!scope.$$disconnected) return;

      var child = scope;

      var parent = child.$parent;
      child.$$disconnected = false;
      // See Scope.$new for this logic...
      child.$$prevSibling = parent.$$childTail;
      if (parent.$$childHead) {
        parent.$$childTail.$$nextSibling = child;
        parent.$$childTail = child;
      } else {
        parent.$$childHead = parent.$$childTail = child;
      }
    }
function reconnectScope(scope) {
      if (!scope) return;

      // we can't disconnect the root node or scope already disconnected
      if (scope.$root === scope) return;
      if (!scope.$$disconnected) return;

      var child = scope;

      var parent = child.$parent;
      child.$$disconnected = false;
      // See Scope.$new for this logic...
      child.$$prevSibling = parent.$$childTail;
      if (parent.$$childHead) {
        parent.$$childTail.$$nextSibling = child;
        parent.$$childTail = child;
      } else {
        parent.$$childHead = parent.$$childTail = child;
      }
    }
function reconnectScope ( scope ) { if ( ! scope ) return ; // we can't disconnect the root node or scope already disconnected if ( scope . $root === scope ) return ; if ( ! scope . $$disconnected ) return ; var child = scope ; var parent = child . $parent ; child . $$disconnected = false ; // See Scope.$new for this logic... child . $$prevSibling = parent . $$childTail ; if ( parent . $$childHead ) { parent . $$childTail . $$nextSibling = child ; parent . $$childTail = child ; } else { parent . $$childHead = parent . $$childTail = child ; } }
Undo the effects of disconnectScope above.
Undo the effects of disconnectScope above .