qwery icon indicating copy to clipboard operation
qwery copied to clipboard

Missing 'typeof' operator

Open krmgns opened this issue 8 years ago • 0 comments

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

krmgns avatar Aug 30 '17 18:08 krmgns