code: function _getRoot(transform) {
    return function() {
      var parent = transform.parent;
      return parent === undefined ? transform : parent.root;
    }
  }
docs: Returns the topmost transform in the hierarchy
  
  @param {Transform} transform
  @returns {Transform} root transform