src/components/autocomplete/js/autocompleteController.js
function gatherSnapWrap() {
    var element;
    var value;
    for (element = $element; element.length; element = element.parent()) {
      value = element.attr('md-autocomplete-snap');
      if (angular.isDefined(value)) break;
    }

    if (element.length) {
      return {
        snap: element[0],
        wrap: (value.toLowerCase() === 'width') ? element[0] : $element.find('md-autocomplete-wrap')[0]
      };
    }

    var wrap = $element.find('md-autocomplete-wrap')[0];
    return {
      snap: wrap,
      wrap: wrap
    };
  }
function gatherSnapWrap() {
    var element;
    var value;
    for (element = $element; element.length; element = element.parent()) {
      value = element.attr('md-autocomplete-snap');
      if (angular.isDefined(value)) break;
    }

    if (element.length) {
      return {
        snap: element[0],
        wrap: (value.toLowerCase() === 'width') ? element[0] : $element.find('md-autocomplete-wrap')[0]
      };
    }

    var wrap = $element.find('md-autocomplete-wrap')[0];
    return {
      snap: wrap,
      wrap: wrap
    };
  }
function gatherSnapWrap ( ) { var element ; var value ; for ( element = $element ; element . length ; element = element . parent ( ) ) { value = element . attr ( 'md-autocomplete-snap' ) ; if ( angular . isDefined ( value ) ) break ; } if ( element . length ) { return { snap : element [ 0 ] , wrap : ( value . toLowerCase ( ) === 'width' ) ? element [ 0 ] : $element . find ( 'md-autocomplete-wrap' ) [ 0 ] } ; } var wrap = $element . find ( 'md-autocomplete-wrap' ) [ 0 ] ; return { snap : wrap , wrap : wrap } ; }
Gathers the snap and wrap elements
Gathers the snap and wrap elements