src/components/autocomplete/js/autocompleteController.js
function getItemAsNameVal (item) {
    if (!item) {
      return undefined;
    }

    var locals = {};
    if (ctrl.itemName) {
      locals[ ctrl.itemName ] = item;
    }

    return locals;
  }
function getItemAsNameVal (item) {
    if (!item) {
      return undefined;
    }

    var locals = {};
    if (ctrl.itemName) {
      locals[ ctrl.itemName ] = item;
    }

    return locals;
  }
function getItemAsNameVal ( item ) { if ( ! item ) { return undefined ; } var locals = { } ; if ( ctrl . itemName ) { locals [ ctrl . itemName ] = item ; } return locals ; }
Returns the locals object for compiling item templates.
@param item
@returns {Object|undefined}
Returns the locals object for compiling item templates .