vic10us / cc-form

<cc-form> - is a Polymer CreditCard Element to add a little pzazz to the mundane task of entering your credit card info on a website
https://vic10us.github.io/cc-form/components/cc-form/
MIT License
10 stars 4 forks source link

Invalid JavaScript #5

Open scottmboring opened 7 years ago

scottmboring commented 7 years ago

Invalid javascript at https://github.com/vic10us/cc-form/blob/master/cc-form.html#L166

this._debug({cardType, showBack});

I'm not sure what that line is supposed to do, but it's not valid and causes uglifyJS to break.

this._debug({cardType, showBack}); ^ SyntaxError: Unexpected token punc «,», expected punc «:» at JS_Parse_Error.get (eval at (/usr/local/lib/node_modules/uglify-js/tools/node.js:28:1), :86:23) at /usr/local/lib/node_modules/uglify-js/bin/uglifyjs:384:39 at time_it (/usr/local/lib/node_modules/uglify-js/bin/uglifyjs:620:15) at /usr/local/lib/node_modules/uglify-js/bin/uglifyjs:345:9 at tryToString (fs.js:455:3) at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)

vic10us commented 7 years ago

Thanks, it appears that uglify is not liking the object declarative syntax. I'll try to squeeze in time to fix it.