Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make unbind function consistent with key function #88

Closed
wants to merge 1 commit into from

Conversation

Crisfole
Copy link

Previously, the key function and unbind function were assymetrical
so the following ignored the clear meaning intended:

key('a, b', function() { alert("You Hit A or B!") });
# User Interaction...
key.unbind('a, b')

Only a was unbound.

The code was almost 100% there; I just mirrored the behavior I saw in
the assignKeys function.

The code is tested (failing tests were produced first).

Previously, the `key` function and `unbind` function were assymetrical
so the following ignored the clear meaning intended:

    key('a, b', function() { alert("You Hit A or B!") });
    # User Interaction...
    key.unbind('a, b')

Only `a` was unbound.

The code was almost 100% there; I just mirrored the behavior I saw in
the `assignKeys` function.

The code is tested (failing tests were produced first).
@nwinkler
Copy link
Contributor

nwinkler commented Sep 4, 2013

I think this is pretty much the same as #97, which was just merged into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants