code: function(isolate) {
          var ChildScope,
              child;
  
          if (isolate) {
            child = new Scope();
            child.$root = this.$root;
            // ensure that there is just one async queue per $rootScope and its children
            child.$$asyncQueue = this.$$asyncQueue;
            child.$$postDigestQueue = this.$$postDigestQueue;
          } else {
            ChildScope = function() {}; // should be anonymous; This is so that when the minifier munges
              // the name it does not become random set of chars. This will then show up as class
              // name in the debugger.
            ChildScope.prototype = this;
            child = new ChildScope();
            child.$id = nextUid();
          }
          child['this'] = child;
          child.$$listeners = {};
          child.$parent = this;
          child.$$watchers = child.$$nextSibling = child.$$childHead = child.$$childTail = null;
          child.$$prevSibling = this.$$childTail;
          if (this.$$childHead) {
            this.$$childTail.$$nextSibling = child;
            this.$$childTail = child;
          } else {
            this.$$childHead = this.$$childTail = child;
          }
          return child;
        }
docs: @ngdoc function
  @name ng.$rootScope.Scope#$new
  @methodOf ng.$rootScope.Scope
  @function
  
  @description
  Creates a new child {@link ng.$rootScope.Scope scope}.
  
  The parent scope will propagate the {@link ng.$rootScope.Scope#methods_$digest $digest()} and
  {@link ng.$rootScope.Scope#methods_$digest $digest()} events. The scope can be removed from the
  scope hierarchy using {@link ng.$rootScope.Scope#methods_$destroy $destroy()}.
  
  {@link ng.$rootScope.Scope#methods_$destroy $destroy()} must be called on a scope when it is
  desired for the scope and its child scopes to be permanently detached from the parent and
  thus stop participating in model change detection and listener notification by invoking.
  
  @param {boolean} isolate If true, then the scope does not prototypically inherit from the
  parent scope. The scope is isolated, as it can not see parent scope properties.
  When creating widgets, it is useful for the widget to not accidentally read parent
  state.
  
  @returns {Object} The newly created child scope.