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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -