Skip to content

why the fn callback is only called instead returned? #12

Open

Description

@timaschew

in line: https://github.com/component/delegate/blob/master/index.js#L26

is there a reason why it's not if (e.delegateTarget) return fn.call(el, e); ?

Activity

  1. TooTallNate commented on Jun 21, 2014

    @TooTallNate
    Member

    Most likely just an oversight. I'll take a pull request to return the result of the function call.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions