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

Support simple alphabet error correct level #67

Open fetus-hina opened 9 years ago

fetus-hina commented 9 years ago

In current minified code, the QRErrorCorrectLevel variable is not exported to global namespace. Users must use option like {correctLevel:3, ...} to change error correct level to "Q". So, it's not user-friendly.

This PR add support simple alphabet error correction level. Users will be able to written as {correctLevel:"Q", ...}.

This PR is fixed #62 and related to #23.

As other approaches, export the QRErrorCorrectLevel variable to global namespace. But might it not preferable, because it pollute the global namespace.