src/Transform.js
function _getRoot(transform) {
  return function() {
    var parent = transform.parent;
    return parent === undefined ? transform : parent.root;
  }
}
function _getRoot(transform) {
  return function() {
    var parent = transform.parent;
    return parent === undefined ? transform : parent.root;
  }
}
function _getRoot ( transform ) { return function ( ) { var parent = transform . parent ; return parent === undefined ? transform : parent . root ; } }
Returns the topmost transform in the hierarchy

@param {Transform} transform
@returns {Transform} root transform
Returns the topmost transform in the hierarchy