2017-05-16 18:06:34 -04:00
|
|
|
export default class VersionCheckImage {
|
2017-01-12 09:00:06 -05:00
|
|
|
static bindErrorEvent(imageElement) {
|
2020-12-08 16:10:06 -05:00
|
|
|
// 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-19 09:29:11 -05:00
|
|
|
}
|
2017-01-12 09:00:06 -05:00
|
|
|
}
|