function isCssVisible(node) {
  var display = node.css('display');
  return !node.hasClass('ng-hide') && display !== 'none';
}
a
This method is a cheap way of testing if css for a given node is not set to 'none'. It doesn't
actually test if an element is displayed by the browser. Be aware!!!