Browse Source

NESPalette class now exported as default. Updated imports accordingly.

dev-tmpl
Bryan Miller 6 years ago
parent
commit
95e479b81e
3 changed files with 3 additions and 3 deletions
  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 View File

@@ -1,5 +1,5 @@
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";
// The two attributes below MUST BOTH be in the element.

+ 1
- 1
app/js/main.js View File

@@ -4,7 +4,7 @@ import Input from "/app/js/ui/Input.js";
import Modal from "/app/js/ui/Modal.js";
import CTRLPalettes from "/app/js/ctrls/CTRLPalettes.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){
if (e.type == "ALL"){

+ 1
- 1
app/js/models/NESPalette.js View File

@@ -4,7 +4,7 @@ import {EventCaller} from "/app/js/common/EventCaller.js"
* Object for manipulating the eight NES palettes.
* @extends EventCaller
*/
export class NESPalette extends EventCaller{
export default class NESPalette extends EventCaller{
constructor(){
super();
this.__BGColor = 63; // Index to the background color ALL palettes MUST share.

Loading…
Cancel
Save