Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Remove uses of deprecated APIs - #86

Merged
maxbrunsfeld merged 12 commits into
masterfrom
mb-modernize
Dec 11, 2014
Merged

maxbrunsfeld merged 12 commits into
masterfrom
mb-modernize

Conversation

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

Depends on atom/atom@a6f31ed being released.

Also, use atom.keymaps directly rather than using
the jQuery.fn.enableKeymap spec helper

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've been reusing panels across open/closes in other select list packages I've been converting.

Just wondering if there is a downside, looks like you are creating/destroying the panel on attach/detach here.

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.

I don't have a strong reason for doing it either way, except that this way we don't have to worry about destroying the panel when the package is deactivated. Do you think it'd be better to re-use the panel?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think it'd be better to re-use the panel?

Both seem to work and I don't know a downside to this approach except more DOM elements get created on show which possibly could slow down bigger views. But then leaving the panel there after close could leave lots of DOM elements around that could possibly bloat the DOM as well which I'm not sure what the impact of that will be.

Either way, it would probably be good to solidify on one or the other so the bundled packages are consistent examples of ways we recommend using panels.

Comment thread lib/snippet-expansion.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason to require it from event-kit instead of atom?

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.

Whoops; no, thanks.

Comment thread lib/snippets.coffee

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Was there a reason for removing these defaults?

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.

No, I just thought that the method was never called with less than 3 arguments. Now I'm realizing that the intent was for other packages to call this method; is that right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe so, I'm a little hazy its past, but I believe it is a public API, so maybe it should be marked as such.

maxbrunsfeld added a commit that referenced this pull request Dec 11, 2014
Remove uses of deprecated APIs
@maxbrunsfeld
maxbrunsfeld merged commit 83c9fb5 into master Dec 11, 2014
@maxbrunsfeld
maxbrunsfeld deleted the mb-modernize branch December 11, 2014 00:43
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.

2 participants