bundles/org.eclipse.orion.client.ui/web/gcli/gcli/ui/display.js
function find(doc, element, id) {
  if (!element) {
    element = doc.getElementById(id);
    if (!element) {
      throw new Error('Missing element, id=' + id);
    }
  }
  return element;
}
function find(doc, element, id) {
  if (!element) {
    element = doc.getElementById(id);
    if (!element) {
      throw new Error('Missing element, id=' + id);
    }
  }
  return element;
}
function find ( doc , element , id ) { if ( ! element ) { element = doc . getElementById ( id ) ; if ( ! element ) { throw new Error ( 'Missing element, id=' + id ) ; } } return element ; }
Utility to help find an element by id, throwing if it wasn't found
Utility to help find an element by id throwing if it wasn t found