Browse Source

CTRLBankTools now listens for the 'bank_remove_duplicates' event, which will call the NESBank .removeDuplicates().compact()

dev
Bryan Miller 5 years ago
parent
commit
447f65c033
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      app/js/ctrls/CTRLBankTools.js

+ 8
- 0
app/js/ctrls/CTRLBankTools.js View File

@@ -57,6 +57,13 @@ function HANDLE_SurfChange(surf){
}


function HANDLE_RemoveDuplicates(){
if (SURF !== null){
SURF.removeDuplicates().compact();
}
}


function HANDLE_ModeChange(){
if (ELCtrl !== null && SURF !== null){
var val = this.options[this.selectedIndex].value;
@@ -97,6 +104,7 @@ function HANDLE_OffsetChange(){
class CTRLBankTools{
constructor(){
GlobalEvents.listen("change_surface", HANDLE_SurfChange);
GlobalEvents.listen("bank_remove_duplicates", HANDLE_RemoveDuplicates);
}

close(){

Loading…
Cancel
Save