Fix issue #64 (#66)

During the typescriptification of `disk2.js`
(9d0ec5489c), `drive`, a parameter
reference, was changed into `this.drive`, the current active disk, by
mistake. This change fixes that error.
This commit is contained in:
Ian Flanigan 2021-03-21 17:10:55 +01:00 committed by GitHub
parent db36ca4553
commit a94fdaa065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,7 +302,7 @@ export default class DiskII implements Card {
private writeMode = false;
/** Whether the selected drive is on. */
private on = false;
/** Current drive number (0, 1). */
/** Current drive number (1, 2). */
private drive: DriveNumber = 1;
/** Current drive object. */
private cur = this.drives[this.drive - 1];
@ -783,8 +783,8 @@ export default class DiskII implements Card {
}
Object.assign(cur, newDisk);
this.updateDirty(this.drive, false);
this.callbacks.label(this.drive, name);
this.updateDirty(drive, false);
this.callbacks.label(drive, name);
}
getJSON(drive: DriveNumber, pretty: boolean) {