提交 1398a401 编写于 作者: B Benjamin Dobell 提交者: Mr.doob

Remove onload callback after its fired (avoid leaks) (#9649)

上级 5c3a37e3
......@@ -20,6 +20,8 @@ Object.assign( ImageLoader.prototype, {
var image = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'img' );
image.onload = function () {
image.onload = null;
URL.revokeObjectURL( image.src );
if ( onLoad ) onLoad( image );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册