Skip to content

Commit 83e1927

Browse files
committed
Renamed functions for converting between line numbers and HTML-tags.
1 parent c7078dd commit 83e1927

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

code_comments/htdocs/code-comments.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)