debian-mirror-gitlab/app/assets/javascripts/version_check_image.js

7 lines
217 B
JavaScript
Raw Normal View History

2017-09-10 17:25:29 +05:30
export default class VersionCheckImage {
2017-08-17 22:00:37 +05:30
static bindErrorEvent(imageElement) {
2021-02-22 17:27:13 +05:30
// eslint-disable-next-line @gitlab/no-global-event-off
2017-08-17 22:00:37 +05:30
imageElement.off('error').on('error', () => imageElement.hide());
}
}