Rename Dropper to DropArea

This commit is contained in:
Thomas Weber committed 2021-08-28 21:35:29 -05:00
1 parent 32ead183bd
commit 125d1db087
3 files changed
+6 -6

No files matched your search

@@ -1,7 +1,7 @@
import styles from './style.css';
import {readAsText} from '../common/readers';
class Dropper {
class DropArea {
constructor (el, callback) {
this.el = el;
this.callback = callback;
@@ -32,4 +32,4 @@ class Dropper {
}
}
export default Dropper;
export default DropArea;
+2 -2
View File
@@ -1,5 +1,5 @@
import ContextMenu from './context-menu';
import Dropper from './dropper';
import DropArea from './drop-area';
import styles from './style.css';
import {readAsText} from '../common/readers';
@@ -269,7 +269,7 @@ class ListMonitor extends Monitor {
this.root.appendChild(this.rowsOuter);
this.root.appendChild(this.footer);
this.dropper = new Dropper(this.rowsOuter, this.dropperCallback.bind(this));
this.dropper = new DropArea(this.rowsOuter, this.dropperCallback.bind(this));
this.handleImport = this.handleImport.bind(this);
this.handleExport = this.handleExport.bind(this);
+2 -2
View File
@@ -1,4 +1,4 @@
import Dropper from './dropper';
import DropArea from './drop-area';
import styles from './style.css';
class Question {
@@ -25,7 +25,7 @@ class Question {
this.input.className = styles.questionInput;
this.input.addEventListener('keypress', this.onkeypress.bind(this));
this.dropper = new Dropper(this.input, this.dropperCallback.bind(this));
this.dropper = new DropArea(this.input, this.dropperCallback.bind(this));
this.submitButton = document.createElement('button');
this.submitButton.className = styles.questionSubmitButton;