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

Wrap delegate and undelegate #851

Closed
wants to merge 1 commit into from
Closed

Wrap delegate and undelegate #851

wants to merge 1 commit into from

Conversation

84564221
Copy link
Contributor

Check whether Backbone.utils.delegate or Backbone.utils.undelegate are functions

See paulmillr/exoskeleton#87

Check whether Backbone.utils.delegate or Backbone.utils.undelegate are functions
@akre54
Copy link
Contributor

akre54 commented Mar 23, 2015

Try Backbone.utils?.delegate(this, eventName, ...) or Backbone.utils?.delegate?(this, eventName, ...)

@84564221
Copy link
Contributor Author

@akre54 What do you mean exactly by that?

@akre54
Copy link
Contributor

akre54 commented Mar 23, 2015

The coffeescript ? "soak" operator does this without the need to wrap everything in a _.isFunction test.

http://coffeescript.org/#try:Backbone.utils.delegate%3F(this%2C%20opts)

@84564221 84564221 closed this Mar 23, 2015
@akre54
Copy link
Contributor

akre54 commented Mar 23, 2015

No need to close it. Just amend your pull request.

@84564221
Copy link
Contributor Author

I have accidentally removed my fork

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

Successfully merging this pull request may close these issues.

2 participants