code: function(element) {
          var depth = 3,
              ignore = false;
          do {
              if (element.nodeName.toLowerCase() === 'a') {
                  ignore = true;
                  break;
              }
              element = element.parentNode;
          } while (--depth > 0 && element);
          return ignore;
      }
docs: Method: ignore
  Check for event target elements that should be ignored by OpenLayers.
  
  Parameters:
  element - {DOMElement} The event target.