Authored by yyq

fix

@@ -808,7 +808,7 @@ module.exports = (function() { @@ -808,7 +808,7 @@ module.exports = (function() {
808 808
809 // Android 2.1 bug workaround 809 // Android 2.1 bug workaround
810 // http://code.google.com/p/android/issues/detail?id=5141 810 // http://code.google.com/p/android/issues/detail?id=5141
811 - if (this._android && this._android <= 2.1) { 811 + if (this && this._android && this._android <= 2.1) {
812 var factor = 1 / window.devicePixelRatio; 812 var factor = 1 / window.devicePixelRatio;
813 var drawImage = CanvasRenderingContext2D.prototype.drawImage; 813 var drawImage = CanvasRenderingContext2D.prototype.drawImage;
814 CanvasRenderingContext2D.prototype.drawImage = function(image, sx, sy, sw, sh, dx, dy, dw, dh) { 814 CanvasRenderingContext2D.prototype.drawImage = function(image, sx, sy, sw, sh, dx, dy, dw, dh) {
@@ -1059,7 +1059,7 @@ module.exports = (function() { @@ -1059,7 +1059,7 @@ module.exports = (function() {
1059 * @param {String} [vOption.colorLight="#ffffff"] 1059 * @param {String} [vOption.colorLight="#ffffff"]
1060 * @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H] 1060 * @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H]
1061 */ 1061 */
1062 - QRCode = function(el, vOption) { 1062 + var QRCode = function(el, vOption) {
1063 this._htOption = { 1063 this._htOption = {
1064 width: 256, 1064 width: 256,
1065 height: 256, 1065 height: 256,