@@ -114,7 +114,7 @@ var underscore = _.noConflict();
114
114
if ( ! this . viewPerLine [ line ] ) {
115
115
this . viewPerLine [ line ] = new CommentsForALineView ( { line : line } ) ;
116
116
117
- var $tr = $ ( Rows . getTrByLineNumber ( line ) ) ;
117
+ var $tr = $ ( Rows . getTrByLineNumberInDiff ( line ) ) ;
118
118
$tr . after ( this . viewPerLine [ line ] . render ( ) . el ) . addClass ( 'with-comments' ) ;
119
119
}
120
120
this . viewPerLine [ line ] . addOne ( comment ) ;
@@ -275,10 +275,10 @@ var underscore = _.noConflict();
275
275
// wrap TH content in spans so we can hide/show them
276
276
this . wrapTHsInSpans ( ) ;
277
277
} ,
278
- getLineByTR : function ( tr ) {
278
+ getLineNumberInDiffByTr : function ( tr ) {
279
279
return $ . inArray ( tr , this . $rows ) + 1 ;
280
280
} ,
281
- getTrByLineNumber : function ( line ) {
281
+ getTrByLineNumberInDiff : function ( line ) {
282
282
return this . $rows [ line - 1 ] ;
283
283
} ,
284
284
wrapTHsInSpans : function ( ) {
@@ -311,7 +311,7 @@ var underscore = _.noConflict();
311
311
return this . $el . parents ( 'li' ) . find ( 'h2>a:first' ) . text ( ) ;
312
312
} ,
313
313
getLineNumberInDiff : function ( ) {
314
- return Rows . getLineByTR ( this . el ) ;
314
+ return Rows . getLineNumberInDiffByTr ( this . el ) ;
315
315
} ,
316
316
getLineNumberInFile : function ( ) {
317
317
// Get the linenumber within the file of this row. If the row is deleted, return it negated.
0 commit comments