function (node) {
      var current = node;
      while (current) {
        if ((current.$mdGesture || {})[this.name]) {
          return current;
        }
        current = current.parentNode;
      }
      return null;
    }
function (node) {
      var current = node;
      while (current) {
        if ((current.$mdGesture || {})[this.name]) {
          return current;
        }
        current = current.parentNode;
      }
      return null;
    }
function ( node ) { var current = node ; while ( current ) { if ( ( current . $mdGesture || { } ) [ this . name ] ) { return current ; } current = current . parentNode ; } return null ; }
Find and return the nearest parent element that has been registered to listen for this handler via $mdGesture.register(element, 'handlerName').
Find and return the nearest parent element that has been registered to listen for this handler via $mdGesture . register ( element handlerName ) .
Returns the parent of the given node