From d448189c0e9557195e8265bd2a96a6ba0c2701c0 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sat, 12 Sep 2020 10:36:17 +0200 Subject: [PATCH] Cleanup --- src/TextAnnotator.jsx | 9 +-------- src/selection/SelectionHandler.js | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/TextAnnotator.jsx b/src/TextAnnotator.jsx index d69fbcc..bfeef3b 100644 --- a/src/TextAnnotator.jsx +++ b/src/TextAnnotator.jsx @@ -4,9 +4,6 @@ import Highlighter from './highlighter/Highlighter'; import SelectionHandler from './selection/SelectionHandler'; import RelationsLayer from './relations/RelationsLayer'; import RelationEditor from './relations/editor/RelationEditor'; -import { addPolyfills } from './utils'; - -addPolyfills(); // For Microsoft Edge /** * Pulls the strings between the annotation highlight layer @@ -275,11 +272,7 @@ export default class TextAnnotator extends Component { onAnnotationCreated={this.onCreateOrUpdateAnnotation('onAnnotationCreated')} onAnnotationUpdated={this.onCreateOrUpdateAnnotation('onAnnotationUpdated')} onAnnotationDeleted={this.onDeleteAnnotation} - onCancel={this.onCancelAnnotation}> - - {this.props.children} - - + onCancel={this.onCancelAnnotation} /> } { this.state.selectedRelation && diff --git a/src/selection/SelectionHandler.js b/src/selection/SelectionHandler.js index 912bdaf..2a204c9 100644 --- a/src/selection/SelectionHandler.js +++ b/src/selection/SelectionHandler.js @@ -1,5 +1,4 @@ import { trimRange, rangeToSelection, enableTouch, getExactOverlaps } from './SelectionUtils'; -import { isInternetExplorer } from '../utils'; import EventEmitter from 'tiny-emitter'; const IS_TOUCH = 'ontouchstart' in window || navigator.maxTouchPoints > 0;