1.0.0 • Published 10 years ago
@segment/clear-images v1.0.0
clear-images
Clear img.onload to prevent errors for testing.
Installation
$ npm install @segment/clear-imagesAPI
clearImages()
Sets img.onload to an empty function so no errors are thrown in any onload callbacks.
.bind()
Overrides the window.Image constructor to watch when images are created.
.unbind()
Sets window.Image back to normal.
1.0.0
10 years ago