Skip to content

Commit 5030bc4

Browse files
authored
update setSource in nextTick
1 parent e476656 commit 5030bc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/image.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ function getSource(img){
8888
}
8989

9090
function setSource(img, src, origSrc){
91-
SetSource.call(img, src);
91+
process.nextTick(function(){
92+
SetSource.call(img, src);
93+
});
9294
img._originalSource = origSrc;
9395
}

0 commit comments

Comments
 (0)