code: function _isRefNode(node) {
    return (
      node.nodeType
      && node.nodeType === 1
      && (node.hasAttribute('ref') || typeof node.__refString__ === 'string')
    );
  }
docs: Checks if node has a ref attribute
  @method _isRefNode
  @param {Node} node
  @returns {Boolean}