FIX: delete dataset doesn’t work on safari
This commit is contained in:
parent
8ce76460ed
commit
695894d458
|
@ -24,7 +24,7 @@ function hide(image) {
|
||||||
image.removeAttribute("srcset");
|
image.removeAttribute("srcset");
|
||||||
|
|
||||||
image.src = image.dataset.smallUpload || LOADING_DATA;
|
image.src = image.dataset.smallUpload || LOADING_DATA;
|
||||||
delete image.dataset.smallUpload;
|
image.removeAttribute("data-small-upload");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore an image when onscreen
|
// Restore an image when onscreen
|
||||||
|
|
Loading…
Reference in New Issue