luis-almeida / unveil

A very lightweight jQuery plugin to lazy load images
4.16k stars 676 forks source link

Failed to execute 'webkitMatchesSelector' on 'Element': ':hidden' is not a valid selector #114

Closed rainbow57 closed 8 years ago

rainbow57 commented 8 years ago

I use unveil and zepto(version: 1.1.6), and got the error: Uncaught SyntaxError: Failed to execute 'webkitMatchesSelector' on 'Element': ':hidden' is not a valid selector.

This error is caused by the code "is(':hidden')" in the 34 line. Is there any way to fix it ?

rainbow57 commented 8 years ago

Duplicate of #51

jtrolle commented 8 years ago

Check Zepto Modules and add the modules that you need.

You must add at least selector.js, you can build your version with the builder