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 class-level classes to package-level from Resources #3544

Merged
merged 3 commits into from
Jun 14, 2016

Conversation

dvoytenko
Copy link
Contributor

No real refactoring here yet: just moved Resource, TaskQueue and fixIeMediaBug to separate modules and the same is done for tests.

@@ -1070,6 +1036,9 @@ export class Resources {
task.promise.then(this.taskComplete_.bind(this, task, true),
this.taskComplete_.bind(this, task, false))
.catch(reportError);
if (task.resource.getState() == ResourceState.LAYOUT_SCHEDULED) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Where'd this come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was done in the Resource class by calling internal Resources state. So, I decided to move it here - it's the same signal, just less leaking of Resources vars.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@jridgewell
Copy link
Contributor

LGTM.

@cramforce
Copy link
Member

MERGE MERGE MERGE!

Glad this is finally happening!

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.

4 participants