@@ -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 ) ;
@@ -268,10 +268,10 @@ var underscore = _.noConflict();
268
268
// wrap TH content in spans so we can hide/show them
269
269
this . wrapTHsInSpans ( ) ;
270
270
} ,
271
- getLineByTR : function ( tr ) {
271
+ getLineNumberInDiffByTr : function ( tr ) {
272
272
return $ . inArray ( tr , this . $rows ) + 1 ;
273
273
} ,
274
- getTrByLineNumber : function ( line ) {
274
+ getTrByLineNumberInDiff : function ( line ) {
275
275
return this . $rows [ line - 1 ] ;
276
276
} ,
277
277
wrapTHsInSpans : function ( ) {
@@ -304,7 +304,7 @@ var underscore = _.noConflict();
304
304
return this . $el . parents ( 'li' ) . find ( 'h2>a:first' ) . text ( ) ;
305
305
} ,
306
306
getLineNumberInDiff : function ( ) {
307
- return Rows . getLineByTR ( this . el ) ;
307
+ return Rows . getLineNumberInDiffByTr ( this . el ) ;
308
308
} ,
309
309
getLineNumberInFile : function ( ) {
310
310
// Get the linenumber within the file of this row. If the row is deleted, return it negated.
0 commit comments