Skip to content

bind once #9

Open
Open
@weepy

Description

@weepy

hi - great lib, I added a function that I've been finding useful :

.....
    bind_once : function(event, fct) {
      var fn = function() {
        fct.call(this)
        this.unbind(event, fn)
      }
      this.bind(event, fn)
    },

perhaps you'd like to merge it in ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions