Rename Dropper to DropArea
This commit is contained in:
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;
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user