clearNavigateOnClick static method

bool clearNavigateOnClick(
  1. UIElement element
)

Implementation

static bool clearNavigateOnClick(UIElement element) {
  var attrRoute = element.getAttribute('__navigate__route');
  element.removeAttribute('__navigate__route');
  element.removeAttribute('__navigate__parameters');

  if (attrRoute != null) {
    if (element.style.cursor == 'pointer') {
      element.style.cursor = '';
    }
    return true;
  }

  return false;
}