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

NESPalette class now exported as default. Updated imports accordingly.

dev-tmpl
Bryan Miller 6 лет назад
Родитель
Сommit
95e479b81e
3 измененных файлов: 3 добавлений и 3 удалений
  1. +1
    -1
      app/js/ctrls/CTRLPalettes.js
  2. +1
    -1
      app/js/main.js
  3. +1
    -1
      app/js/models/NESPalette.js

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

import GlobalEvents from "/app/js/common/EventCaller.js"; import GlobalEvents from "/app/js/common/EventCaller.js";
import {NESPalette} from "/app/js/models/NESPalette.js";
import NESPalette from "/app/js/models/NESPalette.js";


const ATTRIB_NESIDX = "nesidx"; const ATTRIB_NESIDX = "nesidx";
// The two attributes below MUST BOTH be in the element. // The two attributes below MUST BOTH be in the element.

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

import Modal from "/app/js/ui/Modal.js"; import Modal from "/app/js/ui/Modal.js";
import CTRLPalettes from "/app/js/ctrls/CTRLPalettes.js"; import CTRLPalettes from "/app/js/ctrls/CTRLPalettes.js";
import CTRLPainter from "/app/js/ctrls/CTRLPainter.js"; import CTRLPainter from "/app/js/ctrls/CTRLPainter.js";
import {NESPalette} from "/app/js/models/NESPalette.js";
import NESPalette from "/app/js/models/NESPalette.js";


function on_palette_changed(e){ function on_palette_changed(e){
if (e.type == "ALL"){ if (e.type == "ALL"){

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

* Object for manipulating the eight NES palettes. * Object for manipulating the eight NES palettes.
* @extends EventCaller * @extends EventCaller
*/ */
export class NESPalette extends EventCaller{
export default class NESPalette extends EventCaller{
constructor(){ constructor(){
super(); super();
this.__BGColor = 63; // Index to the background color ALL palettes MUST share. this.__BGColor = 63; // Index to the background color ALL palettes MUST share.

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