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

Commands can be added multiple times #39

Open
kans opened this issue Apr 27, 2015 · 0 comments
Open

Commands can be added multiple times #39

kans opened this issue Apr 27, 2015 · 0 comments

Comments

@kans
Copy link

kans commented Apr 27, 2015

eg:

javascript
atom.commands.add("atom-workspace", {"mycommand": function f() {}});

The function f will be called as many times as the command is registered. The expected behavior is that add is idempotent - dispatching the function only once.

kans added a commit to Floobits/floobits-atom that referenced this issue Apr 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant