Repository navigation
Remove uses of deprecated APIs - #86
Conversation
Also, use atom.keymaps directly rather than using the jQuery.fn.enableKeymap spec helper
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
ea34d9c to
3e713b7
Compare
There was a problem hiding this comment.
Is there a reason to require it from event-kit instead of atom?
There was a problem hiding this comment.
Whoops; no, thanks.
There was a problem hiding this comment.
Was there a reason for removing these defaults?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Still need to remove calls to these two private APIs: * ::addProperties * ::settingsForScopeDescriptor
Remove uses of deprecated APIs
Depends on atom/atom@a6f31ed being released.