Просмотр исходного кода

Minor tweaks to NESPainter

dev-tmpl
Bryan Miller 7 лет назад
Родитель
Сommit
2db6070556
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      app/js/NESPainter.js

+ 1
- 1
app/js/NESPainter.js Просмотреть файл



if (!canvas) if (!canvas)
throw new Error("Expected a canvas element."); throw new Error("Expected a canvas element.");
this.__canvas = canvas
this.__canvas = canvas;
this.__context = this.__canvas.getContext("2d"); this.__context = this.__canvas.getContext("2d");
if (!this.__context) if (!this.__context)
throw new Error("Failed to obtain canvas context."); throw new Error("Failed to obtain canvas context.");

Загрузка…
Отмена
Сохранить