Use setAttribute() function to set image attributes. Fixes #936

This commit is contained in:
Winston Chang
2016-01-06 14:56:58 -06:00
parent be1081a4b9
commit 2f25d25eec
5 changed files with 7 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ $.extend(imageOutputBinding, {
// Copy items from data to img. This should include 'src'
$.each(data, function(key, value) {
if (value !== null)
img[key] = value;
img.setAttribute(key, value);
});
var $img = $(img);