-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Conversation
@@ -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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
LGTM. |
MERGE MERGE MERGE! Glad this is finally happening! |
No real refactoring here yet: just moved
Resource
,TaskQueue
andfixIeMediaBug
to separate modules and the same is done for tests.