Skip to content

Commit

Permalink
Simplify the mouse out handler
Browse files Browse the repository at this point in the history
We can assume the `this` is the row. From my testing it’s always true.
  • Loading branch information
nb committed Mar 1, 2014
1 parent 0b5f4d8 commit 86f02a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code_comments/htdocs/code-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,8 @@
};

var callbackMouseout = function( event ) {
var tr = $( 'th', this ).length? this : $( this ).parent().get( 0 ),
row = new RowView( { el: tr } );
$( 'a.bubble', tr ).remove();
$( 'a.bubble', this ).remove();
var row = new RowView( { el: this } );
row.bringBackOriginalLineNumberCellContent();
};

Expand Down

0 comments on commit 86f02a7

Please sign in to comment.