Skip to content

Commit

Permalink
Merge pull request #48 from AGiantSquid/fix-spelling-of-clearSelectio…
Browse files Browse the repository at this point in the history
…nHandler

change clearSelectionHanler to clearSelectionHandler
  • Loading branch information
soccerloway authored Apr 13, 2020
2 parents 95ac6ec + 337b673 commit 071a1ac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions dist/demo/demo1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2122,10 +2122,10 @@ class table_selection_TableSelection {

this.dragging = false;
this.selectingHandler = this.mouseDownHandler.bind(this);
this.clearSelectionHanler = this.clearSelection.bind(this);
this.clearSelectionHandler = this.clearSelection.bind(this);
this.helpLinesInitial();
this.quill.root.addEventListener('mousedown', this.selectingHandler, false);
this.quill.on('text-change', this.clearSelectionHanler);
this.quill.on('text-change', this.clearSelectionHandler );
}

helpLinesInitial() {
Expand Down Expand Up @@ -2267,7 +2267,7 @@ class table_selection_TableSelection {
this[direction] = null;
});
this.quill.root.removeEventListener('mousedown', this.selectingHandler, false);
this.quill.off('text-change', this.clearSelectionHanler);
this.quill.off('text-change', this.clearSelectionHandler );
return null;
}

Expand Down
6 changes: 3 additions & 3 deletions dist/quill-better-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2122,10 +2122,10 @@ class table_selection_TableSelection {

this.dragging = false;
this.selectingHandler = this.mouseDownHandler.bind(this);
this.clearSelectionHanler = this.clearSelection.bind(this);
this.clearSelectionHandler = this.clearSelection.bind(this);
this.helpLinesInitial();
this.quill.root.addEventListener('mousedown', this.selectingHandler, false);
this.quill.on('text-change', this.clearSelectionHanler);
this.quill.on('text-change', this.clearSelectionHandler );
}

helpLinesInitial() {
Expand Down Expand Up @@ -2267,7 +2267,7 @@ class table_selection_TableSelection {
this[direction] = null;
});
this.quill.root.removeEventListener('mousedown', this.selectingHandler, false);
this.quill.off('text-change', this.clearSelectionHanler);
this.quill.off('text-change', this.clearSelectionHandler );
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/quill-better-table.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/modules/table-selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export default class TableSelection {
this.selectedTds = [] // array for selected table-cells
this.dragging = false
this.selectingHandler = this.mouseDownHandler.bind(this)
this.clearSelectionHanler = this.clearSelection.bind(this)
this.clearSelectionHandler = this.clearSelection.bind(this)

this.helpLinesInitial()
this.quill.root.addEventListener('mousedown',
this.selectingHandler,
false)

this.quill.on('text-change', this.clearSelectionHanler)
this.quill.on('text-change', this.clearSelectionHandler )
}

helpLinesInitial () {
Expand Down Expand Up @@ -190,7 +190,7 @@ export default class TableSelection {
this.selectingHandler,
false)

this.quill.off('text-change', this.clearSelectionHanler)
this.quill.off('text-change', this.clearSelectionHandler )

return null
}
Expand Down

0 comments on commit 071a1ac

Please sign in to comment.