Skip to content

Commit d0d7b4b

Browse files
authored
Remove jQuery .attr from the image diff again (#30022)
- Follows #29917 Missed these Signed-off-by: Yarden Shoham <[email protected]>
1 parent 3ccda41 commit d0d7b4b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web_src/js/features/imagediff.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ export function initImageDiff() {
9898
const text = await resp.text();
9999
const bounds = getDefaultSvgBoundsIfUndefined(text, info.path);
100100
if (bounds) {
101-
info.$images.attr('width', bounds.width);
102-
info.$images.attr('height', bounds.height);
101+
info.$images.each(function() {
102+
this.setAttribute('width', bounds.width);
103+
this.setAttribute('height', bounds.height);
104+
});
103105
hideElem(info.$boundsInfo);
104106
}
105107
}

0 commit comments

Comments
 (0)