@@ -114,7 +114,7 @@ var underscore = _.noConflict();
114114 if ( ! this . viewPerLine [ line ] ) {
115115 this . viewPerLine [ line ] = new CommentsForALineView ( { line : line } ) ;
116116
117- var $tr = $ ( Rows . getTrByLineNumber ( line ) ) ;
117+ var $tr = $ ( Rows . getTrByLineNumberInDiff ( line ) ) ;
118118 $tr . after ( this . viewPerLine [ line ] . render ( ) . el ) . addClass ( 'with-comments' ) ;
119119 }
120120 this . viewPerLine [ line ] . addOne ( comment ) ;
@@ -268,10 +268,10 @@ var underscore = _.noConflict();
268268 // wrap TH content in spans so we can hide/show them
269269 this . wrapTHsInSpans ( ) ;
270270 } ,
271- getLineByTR : function ( tr ) {
271+ getLineNumberInDiffByTr : function ( tr ) {
272272 return $ . inArray ( tr , this . $rows ) + 1 ;
273273 } ,
274- getTrByLineNumber : function ( line ) {
274+ getTrByLineNumberInDiff : function ( line ) {
275275 return this . $rows [ line - 1 ] ;
276276 } ,
277277 wrapTHsInSpans : function ( ) {
@@ -304,7 +304,7 @@ var underscore = _.noConflict();
304304 return this . $el . parents ( 'li' ) . find ( 'h2>a:first' ) . text ( ) ;
305305 } ,
306306 getLineNumberInDiff : function ( ) {
307- return Rows . getLineByTR ( this . el ) ;
307+ return Rows . getLineNumberInDiffByTr ( this . el ) ;
308308 } ,
309309 getLineNumberInFile : function ( ) {
310310 // Get the linenumber within the file of this row. If the row is deleted, return it negated.
0 commit comments