-
Notifications
You must be signed in to change notification settings - Fork 799
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
Call bind() to get the right this in precaching's plugins #1928
Conversation
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'm assuming that updating the static sw-1.js
file tests that this works, but what about explicitly adding a unit test to verify that cacheWillUpdate
is called with the correct this
context.
Sure, I just added one. |
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.
👍
PR-Bot Size PluginChanged File Sizes
New FilesNo new files have been added. All File SizesView Table
Workbox Aggregate Size Plugin8.83KB gzip'ed (59% of limit) |
R: @philipwalton
Fixes #1927 by properly
bind()
ing to thePlugin
instance.This also adds to the integration test for
workbox-precaching
to ensure that theaddPlugins()
flow has better test coverage.