Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactored line and char position to be in a pos object #118

Merged
merged 1 commit into from
Apr 2, 2015

Conversation

MiguelCastillo
Copy link
Owner

No description provided.

MiguelCastillo added a commit that referenced this pull request Apr 2, 2015
refactored line and char position to be in a `pos` object
@MiguelCastillo MiguelCastillo merged commit 27e0362 into master Apr 2, 2015
@MiguelCastillo MiguelCastillo deleted the fix-116 branch April 2, 2015 01:52
@@ -65,13 +65,15 @@ define(function (require /*, exports, module*/) {
$problemsPanelTable = $problemsPanel.find(".table-container");
$problemsPanelTable.on("click", "tr", function () {
var $target = $(this);
var line = $target.data("line") - 1; // Convert from friendly line to actual line number

var line = $target.data("line"); // Convert from friendly line to actual line number
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that removing the comment from this line seems like a good idea (or restoring the - 1 after the query, if it is needed).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I now see the subtraction on lines 73 and 74; perhaps moving this comment to there would be the better option.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. That comment does not apply anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants