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

ObjectController Binding #1390

Closed
icholy opened this issue Sep 19, 2012 · 4 comments
Closed

ObjectController Binding #1390

icholy opened this issue Sep 19, 2012 · 4 comments

Comments

@icholy
Copy link

icholy commented Sep 19, 2012

I don't know if this is expected behaviour, but I can't add bound properties to my ObjectController

App.FailController = Em.ObjectController.extend({
    content: null,
    myBinding: "App.router.myController", // <-- fails
});

Error:

Uncaught Error: assertion failed: Cannot delegate set('my', ) to the 'content' property of object proxy <.FailController:ember154>: its 'content' is undefined.

So it's trying to add it to it's content property which doesn't seem like what should be happening.

Ember 1.0.pre
jsFiddle

@caligo-mentis
Copy link
Contributor

@icholy
Copy link
Author

icholy commented Sep 19, 2012

@caligo-mentis thanks! Is this documented anywhere or is it a bug?

@caligo-mentis
Copy link
Contributor

Yep, this is ObjectProxy default behavior.

On 19.09.2012, at 23:14, ilia choly wrote:

@caligo-mentis thanks! Is this documented anywhere or is it a bug?


Reply to this email directly or view it on GitHub.

@icholy
Copy link
Author

icholy commented Sep 19, 2012

k cool. I posted to SO

@icholy icholy closed this as completed Sep 19, 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

No branches or pull requests

2 participants