jeromeetienne / jquery-qrcode

qrcode generation standalone (doesn't depend on external services)
http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
MIT License
4.84k stars 2.5k forks source link

[jquery.qrcode.min.js] QRErrorCorrectLevel symbol is not available. #16

Closed ghost closed 12 years ago

ghost commented 12 years ago

Hi, Thank you for this useful tool.

'jquery.qrcode.min.js' does not contain 'QRErrorCorrectLevel' symbol. I think that 'closurec' tool renames its name. But calling '.qrcode()' with 'correctLevel' option require it.

Example: (this is not work) <script src="jquery.qrcode.min.js"> <div id="qrcode"></div> <script> jQuery('#qrcode').qrcode({text : 'TEXT', correctLevel : QRErrorCorrectLevel.L}); </script>

src/qrcode.js: //--------------------------------------------------------------------- // QRErrorCorrectLevel //---------------------------------------------------------------------

var QRErrorCorrectLevel = { L : 1, M : 0, Q : 3, H : 2 };

jquery.qrcode.min.js: v={L:1,M:0,Q:3,H:2}