Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhu94 committed Jan 5, 2019
1 parent 02608a6 commit d6cfc62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions packages/cells/src/celldragutils.ts
Expand Up @@ -15,9 +15,8 @@ import { Cell } from './widget';
import { h, VirtualDOM } from '@phosphor/virtualdom';
import { nbformat } from '../../coreutils/lib';


/**
* Constants for drag
* Constants for drag
*/

/**
Expand Down Expand Up @@ -50,7 +49,6 @@ const CELL_DRAG_PROMPT_CLASS = 'jp-dragImage-prompt';
const CELL_DRAG_MULTIPLE_BACK = 'jp-dragImage-multipleBack';

export namespace CellDragUtils {

export type ICellTargetArea = 'input' | 'prompt' | 'cell' | 'unknown';

/**
Expand Down Expand Up @@ -86,8 +84,8 @@ export namespace CellDragUtils {

/**
* Detect which part of the cell triggered the MouseEvent
*
* @param cell - The cell which contains the MouseEvent's target
*
* @param cell - The cell which contains the MouseEvent's target
* @param target - The DOM node which triggered the MouseEvent
*/
export function detectTargetArea(
Expand All @@ -112,7 +110,7 @@ export namespace CellDragUtils {
/**
* Detect if a drag event should be started. This is down if the
* mouse is moved beyond a certain distance (DRAG_THRESHOLD).
*
*
* @param prevX - X Coordinate of the mouse pointer during the mousedown event
* @param prevY - Y Coordinate of the mouse pointer during the mousedown event
* @param nextX - Current X Coordinate of the mouse pointer
Expand All @@ -131,9 +129,9 @@ export namespace CellDragUtils {

/**
* Create an image for the cell(s) to be dragged
*
*
* @param activeCell - The cell from where the drag event is triggered
* @param selectedCells - The cells to be dragged
* @param selectedCells - The cells to be dragged
*/
export function createCellDragImage(
activeCell: Cell,
Expand Down
3 changes: 2 additions & 1 deletion packages/console/src/widget.ts
Expand Up @@ -389,7 +389,7 @@ export class CodeConsole extends Widget {
return cells;
}

/**
/**
* Handle `mousedown` events for the widget.
*/
private _evtMouseDown(event: MouseEvent): void {
Expand Down Expand Up @@ -520,6 +520,7 @@ export class CodeConsole extends Widget {
break;
case 'mouseup':
this._evtMouseUp(event as MouseEvent);
break;
default:
break;
}
Expand Down

0 comments on commit d6cfc62

Please sign in to comment.