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

Move more methods from resources-impl to owners-impl #24222

Merged
merged 10 commits into from Aug 30, 2019

Conversation

lannka
Copy link
Contributor

@lannka lannka commented Aug 26, 2019

To be shared with inabox runtime.

  • Moved findResourcesInElements measureAndTryScheduleLayout requireLayout from resources service to owners service. Made findResourcesInElements measureAndTryScheduleLayout private methods.
  • Exposed scheduleLayoutOrPreload in resources as a public method.

@lannka
Copy link
Contributor Author

lannka commented Aug 28, 2019

/to @jridgewell

Copy link
Contributor

@jridgewell jridgewell left a comment

Choose a reason for hiding this comment

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

Trusting that this is a simple code copy-paste.

Copy link
Contributor

@powerivq powerivq left a comment

Choose a reason for hiding this comment

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

Need to update

'\\.findResourcesInElements\\(': {
, but otherwise LGTM

@lannka lannka merged commit b53a65a into ampproject:master Aug 30, 2019
@lannka lannka deleted the resources-owners branch August 30, 2019 00:57
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
* Move more methods from resources-impl to owners-impl

* lint

* revert

* Fix tests

* presubmit

* fix test-resources.js

* refactor owners tests

* refactor tests

* rewrite tests for requireLayout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants