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

Event binding namespace problem #783

Open
jonakyd opened this issue Apr 2, 2014 · 2 comments
Open

Event binding namespace problem #783

jonakyd opened this issue Apr 2, 2014 · 2 comments

Comments

@jonakyd
Copy link
Contributor

jonakyd commented Apr 2, 2014

Hi, there is some inconsistent between Backbone event hash and Chaplin @DeleGate.

Chaplin @DeleGate event namespace is ".delegate"
Backbone event hash namespace is ".delegateEvents"

So I can't use @undelegate on Backbone bound callback

Second issue

If I use @noWrap on View, @$el won't be initialize until @render, if user @delegate in initialize, it will wrongly bind to @container.

If this is expected behaviour, maybe we can modify doc to point out. incase someone ( like me ) misuse it.

@jonakyd
Copy link
Contributor Author

jonakyd commented Apr 2, 2014

I'll make a pr later

@akre54
Copy link
Contributor

akre54 commented Apr 2, 2014

@noWrap is a massive hack. It's really an issue with Backbone.View itself that it isn't designed to separate out the DOM element from the View class.

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

No branches or pull requests

2 participants