code: function getAnchorNodes(node) {
          var SELECTOR = '[' + NG_ANIMATE_REF_ATTR + ']';
          var items = node.hasAttribute(NG_ANIMATE_REF_ATTR)
                ? [node]
                : node.querySelectorAll(SELECTOR);
          var anchors = [];
          forEach(items, function(node) {
            var attr = node.getAttribute(NG_ANIMATE_REF_ATTR);
            if (attr && attr.length) {
              anchors.push(node);
            }
          });
          return anchors;
        }
docs: TODO(matsko): change to reference nodes