@ -85,7 +85,6 @@ function redrawQrCode() {
svgXml.value = qr.toSvgString(border);
}
// Returns a string to describe the given list of segments.
function describeSegments(segs) {
if (segs.length == 0)
@ -584,7 +584,7 @@ var qrcodegen = new function() {
Object.defineProperty(this.QrCode, "MAX_VERSION", {value:MAX_VERSION});
/*---- Private static helper functions QrCode ----*/
/*---- Private static helper functions for QrCode ----*/
var QrCode = {}; // Private object to assign properties to. Not the same object as 'this.QrCode'.
@ -189,6 +189,8 @@ impl QrCode {
/*---- Public methods ----*/
// Returns this QR Code's version, in the range [1, 40].
pub fn version(&self) -> Version {
self.version