javascript - Uncaught SyntaxError: Unexpected token ? using Zepto -
i'm using zurb foundation , getting following error
uncaught syntaxerror: unexpected token ?
from block of code:
<script> document.write('<script src=http://[mydomain]/js/vendor/' + ('__proto__' in ? 'zepto' : 'jquery') + '.js><\/script>'); </script>
the code appears in accordance zurb's documentation. error concerned about? if so, resolve error?
you missing variable in below line:
+ ('__proto__' in ? 'zepto' : 'jquery')
should have been below:
+ ('__proto__' in myobject ? 'zepto' : 'jquery')
Comments
Post a Comment