Skip to content
This repository was archived by the owner on Sep 8, 2018. It is now read-only.

Replace atom-space-pen-views with atom-select-list - #119

Merged
as-cii merged 4 commits into
masterfrom
as-remove-space-pen
Jan 19, 2017
Merged

as-cii merged 4 commits into
masterfrom
as-remove-space-pen

Conversation

@as-cii

@as-cii as-cii commented Jan 3, 2017

Copy link
Copy Markdown
Contributor

This pull request uses atom-select-list as a drop-in replacement for atom-space-pen-views. Feature-wise nothing should change, but this yet another step toward removing jQuery from Atom Core.

/cc: @ungb for 👀 on this

Comment thread lib/diff-list-view.js Outdated
for (let diff of diffs) {
const bufferRow = diff.newStart > 0 ? diff.newStart - 1 : diff.newStart
const lineText = this.editor.lineTextForBufferRow(bufferRow)
if (lineText) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why do you use an if statement here but a ternary operator for bufferRow?

@as-cii as-cii Jan 9, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Generally I don't have a strong preference over one or the other, so I guess I did it inadvertently. But being consistent might actually be nicer and shorter here, so good call! I'll update this shortly and use a ternary operator instead. 👍

@ungb

ungb commented Jan 12, 2017

Copy link
Copy Markdown

@as-cii Tested git-diff keybinding-resolver package-generator styleguide as I just saw the PR's for all of these changes to remove jquery. I didn't see any issues on any of these. You're free to merge these when ready.

@as-cii
as-cii merged commit 7a753a0 into master Jan 19, 2017
@as-cii
as-cii deleted the as-remove-space-pen branch January 19, 2017 12:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants