-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
chore: use the new any
event function
#6080
Conversation
162347a
to
722bd5f
Compare
this.tech_.any(['sourceset', 'loadstart'], (e) => { | ||
// if a sourceset happens before a `loadstart` there | ||
// is nothing to do as this function will be called again. | ||
if (e.type === 'sourceset') { |
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.
Using .any
, I'm not sure that this function will get called again anymore.
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.
I think the comment needs to be updated to say that handleTechSourceset
will be called again and reset the cache, rather than "this function"
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.
Oh, I see, we called off
unconditionally previously as well. It looked like we didn't.
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.
I updated the comment now.
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.
Thanks!
Description
Use the new
any
event function where it makes sense.