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

Handle empty events array #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 12, 2017

  1. Handle empty events array

    It's common to pre-emptively call `off` with an event and handler prior
    to any handlers being registered. This is a safeguard to ensure that the
    same handler isn't attached multiple times. In this scenario, the events
    array isn't checked for existence prior to the accessor call (for the
    given selector). Thus a TypeError is raised.
    
    Closes ccampbell#31
    jasonkarns committed Dec 12, 2017
    Configuration menu
    Copy the full SHA
    8549851 View commit details
    Browse the repository at this point in the history