Cleanup
This commit is contained in:
parent
061a37e706
commit
d448189c0e
|
@ -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}
|
||||
|
||||
</Editor>
|
||||
onCancel={this.onCancelAnnotation} />
|
||||
}
|
||||
|
||||
{ this.state.selectedRelation &&
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue