code: function() {
  		var scopes = [];
  		var scope = this,
  			context,
  			parent;
  		while (scope) {
  			context = scope._context;
  			if (context instanceof TemplateContext) {
  				parent = scope._parent;
  				break;
  			}
  			scopes.unshift(scope);
  			scope = scope._parent;
  		}
  		if (parent) {
  			scopes.forEach(function(scope) {
  				// For performance, re-use _meta, don't copy it.
  				parent = parent.add(scope._context, scope._meta);
  			});
  			return parent;
  		} else {
  			return this;
  		}
  	}
docs: ### scope.cloneFromRef  This takes a scope and essentially copies its chain from right before the last TemplateContext. And it does not include the ref. this is a helper function to provide lexical semantics for refs. This will not be needed for leakScope: false.