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;