Skip to content

Commit

Permalink
Chore: Cleaning up annotations code comments (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum authored and tonyjin committed Jul 10, 2017
1 parent 5b8539f commit 9e042c1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions src/lib/annotations/AnnotationDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ const CLASS_ANIMATE_DIALOG = 'bp-animate-show-dialog';
/**
* Hides the dialog.
*
* @param {boolean} [noDelay] - Whether or not to have a timeout delay
* @return {void}
*/
hide() {
Expand Down Expand Up @@ -319,7 +318,7 @@ const CLASS_ANIMATE_DIALOG = 'bp-animate-show-dialog';

const key = decodeKeydown(event);
if (key === 'Escape') {
this.hide(); // hide without delay
this.hide();
} else {
const dataType = annotatorUtil.findClosestDataType(event.target);
if (dataType === 'reply-textarea') {
Expand Down
3 changes: 0 additions & 3 deletions src/lib/annotations/Annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ import './Annotator.scss';
}

// Hide create annotations button if image is rotated
// TODO(@spramod) actually adjust getLocationFromEvent method
// in annotator to get correct location rather than disabling
// the creation of annotations on rotated images
const annotateButton = this.previewUI.getAnnotateButton();

if (rotationAngle !== 0) {
Expand Down
4 changes: 0 additions & 4 deletions src/lib/viewers/image/ImageBaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,6 @@ const CSS_CLASS_PANNABLE = 'pannable';
event.stopPropagation();
}

//----------------------------------------------------------------------------------------------
// Annotations. TODO(jholdstock|spramod) Refactor out all annotations code from viewers
//----------------------------------------------------------------------------------------------

/**
* Disables viewer controls
*
Expand Down

0 comments on commit 9e042c1

Please sign in to comment.