Tweaked syntax for top-level demo functions in TypeScript code.

This commit is contained in:
Project Nayuki 2018-09-04 04:48:39 +00:00
parent a443f7bf6b
commit 72deb2855a
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
/*---- Functions called from HTML code ----*/
myWindow.redrawQrCode = (): void => {
myWindow.redrawQrCode = function(): void {
// Show/hide rows based on bitmap/vector image output
const bitmapOutput: boolean = getInput("output-format-bitmap").checked;
const scaleRow : HTMLElement = getElem("scale-row");
@ -137,7 +137,7 @@
}
myWindow.handleVersionMinMax = (which: "min"|"max"): void => {
myWindow.handleVersionMinMax = function(which: "min"|"max"): void {
const minElem: HTMLInputElement = getInput("version-min-input");
const maxElem: HTMLInputElement = getInput("version-max-input");
let minVal: number = parseInt(minElem.value, 10);