Skip to content

Conversation

@rwjblue
Copy link
Member

@rwjblue rwjblue commented Jun 27, 2016

This PR removes the targetObject CP in favor of simply looking up the correct targetObject when needed. This simplifies the code path for sendAction and removes some overloading of the term "controller" (before this change it could mean an actual outlet's controller or the parentView.controller which may be a component and not a "real" controller).

Fixes comments from @krisselden on the the sendAction PR (#13745 / #13532).

/cc @krisselden @chadhietala

This PR removes the `targetObject` CP in favor of simply looking up the
correct `targetObject` when needed. This simplifies the code path for
`sendAction` and removes some overloading of the term "controller"
(before this change it could mean an actual outlet's controller or the
parentView.controller which may be a component and not a "real"
controller).
@chadhietala
Copy link
Contributor

👍

@chadhietala
Copy link
Contributor

Do you think we can consolidate these?

  • packages/ember-runtime/lib/mixins/target_action_support.js
  • packages/ember-views/lib/mixins/view_target_action_support.js
  • packages/ember-views/lib/mixins/action_support.js

@rwjblue
Copy link
Member Author

rwjblue commented Jun 27, 2016

@chadhietala - Possibly, I will review, might end up being a followup though...

@chadhietala
Copy link
Contributor

Seems good.

@tomdale tomdale merged commit c7991fc into emberjs:master Jun 27, 2016
@rwjblue rwjblue deleted the remove-targetobject-computed branch June 27, 2016 02:13
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.

3 participants