qwery
qwery copied to clipboard
Missing 'typeof' operator
I think there should be typeof operator here selector == 'string'.
if (doc.getElementsByClassName && selector == 'string' && (m = selector.match(classOnly))) {
...
// to
if (doc.getElementsByClassName && typeof selector == 'string' && (m = selector.match(classOnly))) {
Source: https://github.com/ded/qwery/blob/master/qwery.js#L81