gitlab-org--gitlab-foss/app/assets/javascripts/version_check_image.js

7 lines
217 B
JavaScript
Raw Normal View History

export default class VersionCheckImage {
2017-01-12 09:00:06 -05:00
static bindErrorEvent(imageElement) {
// eslint-disable-next-line @gitlab/no-global-event-off
2017-01-12 09:00:06 -05:00
imageElement.off('error').on('error', () => imageElement.hide());
}
2017-01-12 09:00:06 -05:00
}