code: function isAttachedToRoot() {
           if (this.root === true) {
             return true;
           } else {
             var ancestor = this.ancestor;
  
             while (ancestor) {
               if (ancestor.root === true) {
                 return true;
               }
  
               ancestor = ancestor.ancestor;
             }
  
             return false;
           }
         }
docs: Checks if this container is root or if it's attached to the root container.
  @private
  @name isAttachedToRoot
  @memberOf me.Container.prototype
  @function
  @returns Boolean