jeromeetienne/jquery-qrcode — Issue #16: [jquery.qrcode.min.js] QRErrorCorrectLevel symbol is not available.
Author: KUMAAN
Created: 2011-12-30 03:44:31+00:00
State: open

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}