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

Already on GitHub? Sign in to your account

Error binding to escape #9

Closed
jnordberg opened this Issue Mar 1, 2014 · 1 comment

Comments

Projects
None yet
2 participants

In waiting for #7 i'm trying to bind the autocomplete popup to escape for easier access, it works but when pressing escape again the console pops up with this error

Uncaught NotFoundError: An attempt was made to reference a Node in a context where it does not exist. /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5825
jQuery.extend.buildFragment /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5825
jQuery.fn.extend.domManip /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5631
jQuery.fn.extend.append /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5453
jQuery.fn.(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:336
module.exports.EditorView.appendToLinesView /Applications/Atom.app/Contents/Resources/app/src/editor-view.js:1455
module.exports.AutocompleteView.attach /Applications/Atom.app/Contents/Resources/app/node_modules/autocomplete/lib/autocomplete-view.js:187
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/autocomplete/lib/autocomplete-view.js:65
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360
jQuery.event.trigger /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4594
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5119
jQuery.extend.each /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:590
jQuery.fn.jQuery.each /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:237
jQuery.fn.extend.trigger /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5118
module.exports.Keymap.triggerCommandEvent /Applications/Atom.app/Contents/Resources/app/src/keymap.js:267
module.exports.Keymap.handleKeyEvent /Applications/Atom.app/Contents/Resources/app/src/keymap.js:249
(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:93
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360
Contributor

kevinsawicki commented Mar 4, 2014

Thanks for reporting this, I've fixed the behavior and updated the event name to autoocomplete:toggle to make it more accurate and consistent with other package events.

This will be include in the 0.66.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment