dist/melonjs.js
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;
         }
       }
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;
         }
       }
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 ; } }
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
Checks if this container is root or if it s attached to the root container .