Skip to content

Commit 86f02a7

Browse files
committed
Simplify the mouse out handler
We can assume the `this` is the row. From my testing it’s always true.
1 parent 0b5f4d8 commit 86f02a7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

code_comments/htdocs/code-comments.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,8 @@
231231
};
232232

233233
var callbackMouseout = function( event ) {
234-
var tr = $( 'th', this ).length? this : $( this ).parent().get( 0 ),
235-
row = new RowView( { el: tr } );
236-
$( 'a.bubble', tr ).remove();
234+
$( 'a.bubble', this ).remove();
235+
var row = new RowView( { el: this } );
237236
row.bringBackOriginalLineNumberCellContent();
238237
};
239238

0 commit comments

Comments
 (0)