demo/bundle.js
/**
             * Query an element selector if it's not an element already.
             */
Query an element selector if it's not an element already.
Query an element selector if it ' s not an element already .
function query (el) {
              if (typeof el === 'string') {
                var selected = document.querySelector(el);
                if (!selected) {
                  process.env.NODE_ENV !== 'production' && warn(
                    'Cannot find element: ' + el
                  );
                  return document.createElement('div')
                }
                return selected
              } else {
                return el
              }
            }
function query ( el ) { if ( typeof el === 'string' ) { var selected = document . querySelector ( el ) ; if ( ! selected ) { process . env . NODE_ENV !== 'production' && warn ( 'Cannot find element: ' + el ) ; return document . createElement ( 'div' ) } return selected } else { return el } }
Query an element selector if it's not an element already.
Query an element selector if it ' s not an element already .