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

[CLEANUP] reducing private API surface of views. #13773

Merged
merged 1 commit into from
Jun 30, 2016
Merged

Conversation

krisselden
Copy link
Contributor

  • remove unused internal _willDestroyElement hook
  • cleanup childViews documentation not to refer to legacy methods
  • remove undocumented forEachChildView used only by visibility support
    and refactor visibility support not to use it.
  • remove remove and removeFromParent methods, refactor legacy style
    tests to avoid these. Removing a view should be done via the template
    layer. Still leaves destroyElement which is equivalent and used in more
    legacy style tests.

@rwjblue
Copy link
Member

rwjblue commented Jun 29, 2016

LGTM

@private
*/
nearestWithProperty(property) {
let view = get(this, 'parentView');
let view = this.parentView;

while (view) {
if (property in view) { return view; }
view = get(view, 'parentView');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be deleted (it is causing a JSHInt error).

* remove unused internal `_willDestroyElement` hook
* cleanup `childViews` documentation not to refer to legacy methods
* remove undocumented `forEachChildView` used only by visibility support
  and refactor visibility support not to use it.
* remove `remove` and `removeFromParent` methods, refactor legacy style
  tests to avoid these.  Removing a view should be done via the template
  layer. Still leaves destroyElement which is equivalent and used in more
  legacy style tests.
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.

2 participants