message: alphabetical property order
diff: @@ -20,9 +20,13 @@ type HTMLVisualMediaElement = HTMLVideoElement | HTMLImageElement;
  export class BrowserCodeReader {
  /**
  - * The HTML video element, used to display the camera stream.
  + * The HTML canvas element, used to draw the video or image's frame for decoding.
  */
  - protected videoElement: HTMLVideoElement;
  + protected canvasElement: HTMLCanvasElement;
  + /**
  + * The HTML canvas element context.
  + */
  + protected canvasElementContext: CanvasRenderingContext2D;
  /**
  * The HTML image element, used as a fallback for the video element when decoding.
  @@ -30,20 +34,25 @@ export class BrowserCodeReader {
  protected imageElement: HTMLImageElement;
  /**
  - * The HTML canvas element, used to draw the video or image's frame for decoding.
  + * Should contain the current registered listener for image loading,
  + * used to unregister that listener when needed.
  */
  - protected canvasElement: HTMLCanvasElement;
  + protected imageLoadedEventListener: EventListener;
  +
  /**
  - * The HTML canvas element context.
  + * The stream output from camera.
  */
  - protected canvasElementContext: CanvasRenderingContext2D;
  + protected stream: MediaStream;
  + /**
  + * Some timeout's Id.
  + */
  protected timeoutHandler: number;
  /**
  - * The stream output from camera.
  + * The HTML video element, used to display the camera stream.
  */
  - protected stream: MediaStream;
  + protected videoElement: HTMLVideoElement;
  /**
  * Should contain the current registered listener for video loaded-metadata,
  @@ -63,12 +72,6 @@ export class BrowserCodeReader {
  */
  protected videoPlayingEventListener: EventListener;
  - /**
  - * Should contain the current registered listener for image loading,
  - * used to unregister that listener when needed.
  - */
  - protected imageLoadedEventListener: EventListener;
  -
  /**
  * Creates an instance of BrowserCodeReader.
  * @param {Reader} reader The reader instance to decode the barcode
  