Skip to content
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

Check that a controller inherits from Ember.Object before instantiating it to the router. #1269

Merged
merged 1 commit into from Sep 10, 2012
Merged

Check that a controller inherits from Ember.Object before instantiating it to the router. #1269

merged 1 commit into from Sep 10, 2012

Conversation

bradleypriest
Copy link
Member

Make sure that a Controller is at least an Ember.Object. This gives the ability for people to have capitalized controller objects or functions in their main application namespace.

See discussion on emberjs/data#352

cc/ @wagenet

before instantiating it to the router.
@travisbot
Copy link

This pull request passes (merged 3cfc16e into 35fb802).

@wagenet
Copy link
Member

wagenet commented Aug 22, 2012

I like the general idea, though we may want to check for ControllerMixin instead. I'll leave this open for a little bit for review. @wycats, @tomdale, thoughts?

@wagenet
Copy link
Member

wagenet commented Sep 10, 2012

Just to clarify, it's not good practice to have non-objects named as such, but this PR is unlikely to cause any problems.

wagenet added a commit that referenced this pull request Sep 10, 2012
Check that a controller inherits from Ember.Object before instantiating it to the router.
@wagenet wagenet merged commit 2a4f8aa into emberjs:master Sep 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants