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

Events not applied for rendered view + delegateEvents() throws an error. #51

Closed
ConneXNL opened this Issue Aug 22, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@ConneXNL
Contributor

ConneXNL commented Aug 22, 2014

When a view is already rendered and an element is passed to a view instance, the events hash is NOT applied, is this intended?

Also, when you call this.delegateEvents(); manually an error is thrown because this.eventManager does not exist yet (as this is only created in _handleElementChange()).

As a work around I'm currently using this.trigger("change:el");

@wraithgar

This comment has been minimized.

Show comment
Hide comment
@wraithgar

wraithgar Aug 22, 2014

Member

Two questions, first what version was this against? A patch was released yesterday that may have addressed this. Second, what do you mean by 'already rendered and an element is passed into a view instance?' I would like to try to duplicate this in a test so I can fix it.

Member

wraithgar commented Aug 22, 2014

Two questions, first what version was this against? A patch was released yesterday that may have addressed this. Second, what do you mean by 'already rendered and an element is passed into a view instance?' I would like to try to duplicate this in a test so I can fix it.

@ConneXNL

This comment has been minimized.

Show comment
Hide comment
@ConneXNL

ConneXNL Aug 22, 2014

Contributor

By already rendered, i meant rendered server-side. Anyway I see a pull request was merged. https://github.com/AmpersandJS/ampersand-view/pulls
I will try tommorow if it fixes my issue, but it seems like it should.

Contributor

ConneXNL commented Aug 22, 2014

By already rendered, i meant rendered server-side. Anyway I see a pull request was merged. https://github.com/AmpersandJS/ampersand-view/pulls
I will try tommorow if it fixes my issue, but it seems like it should.

@ConneXNL

This comment has been minimized.

Show comment
Hide comment
@ConneXNL

ConneXNL Aug 23, 2014

Contributor

This issue was indeed already fixed by #50

Contributor

ConneXNL commented Aug 23, 2014

This issue was indeed already fixed by #50

@ConneXNL ConneXNL closed this Aug 23, 2014

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