Skip to content

Commit

Permalink
fixed readmes, final code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
markellekelly committed Dec 7, 2019
1 parent 8c3a5e2 commit 32126f5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 19 deletions.
5 changes: 3 additions & 2 deletions packages/celltags-extension/README.md
@@ -1,3 +1,4 @@
# celltags
# @jupyterlab/celltags-extension

A refactor of jupyterlab-celltags intended to be merged into core.
A JupyterLab extension which provides an entry point for
[@jupyterlab/celltags](../celltags).
5 changes: 3 additions & 2 deletions packages/celltags/README.md
@@ -1,3 +1,4 @@
# celltags
# @jupyterlab/celltags

A refactor of jupyterlab-celltags intended to be merged into core.
A JupyterLab package which provides an interface for viewing and manipulating
descriptive tags in notebook cell metadata.
4 changes: 0 additions & 4 deletions packages/celltags/src/addwidget.ts
Expand Up @@ -118,8 +118,6 @@ export class AddWidget extends Widget {

/**
* Handle the `'focus'` event for the input box.
*
* @param event - The DOM event sent to the widget
*/
private _evtFocus() {
if (!this.editing) {
Expand Down Expand Up @@ -151,8 +149,6 @@ export class AddWidget extends Widget {

/**
* Handle the `'focusout'` event for the input box.
*
* @param event - The DOM event sent to the widget
*/
private _evtBlur() {
if (this.editing) {
Expand Down
2 changes: 1 addition & 1 deletion packages/celltags/src/tool.ts
Expand Up @@ -247,7 +247,7 @@ export class TagTool extends NotebookTools.Tool {
this.validateTags(this.tracker.activeCell, taglist);
}

public tracker: INotebookTracker = null;
private tagList: string[] = [];
private header: boolean = false;
public tracker: INotebookTracker = null;
}
14 changes: 4 additions & 10 deletions packages/celltags/src/widget.ts
Expand Up @@ -83,10 +83,10 @@ export class TagWidget extends Widget {
this._evtClick();
break;
case 'mouseover':
this._evtMouseOver(event as MouseEvent);
this._evtMouseOver();
break;
case 'mouseout':
this._evtMouseOut(event as MouseEvent);
this._evtMouseOut();
break;
default:
break;
Expand Down Expand Up @@ -123,8 +123,6 @@ export class TagWidget extends Widget {

/**
* Handle the `'click'` event for the widget.
*
* @param event - The DOM event sent to the widget
*/
private _evtClick() {
if (this.applied) {
Expand All @@ -137,19 +135,15 @@ export class TagWidget extends Widget {

/**
* Handle the `'mouseover'` event for the widget.
*
* @param event - The DOM event sent to the widget
*/
private _evtMouseOver(event: MouseEvent) {
private _evtMouseOver() {
(this.node as HTMLElement).classList.add('tag-hover');
}

/**
* Handle the `'mouseout'` event for the widget.
*
* @param event - The DOM event sent to the widget
*/
private _evtMouseOut(event: MouseEvent) {
private _evtMouseOut() {
(this.node as HTMLElement).classList.remove('tag-hover');
}

Expand Down

0 comments on commit 32126f5

Please sign in to comment.