code: function(data) {
        data = normalizeData(data);
  
        return this.canvas(data).toDataURL(data.mime || DEFAULT_MIME);
      }
docs: Generate the QR code using the data provided and render it on to a `<canvas>` element before returning its data URI. If no `<canvas>` element is specified in the argument provided a new one will be created and used. ECC (error correction capacity) determines how many intential errors are contained in the QR code.