File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ HTMLFile.prototype.onProcess = function (callback)
5151 data . push ( '</svg>' ) ;
5252
5353 var svg = [ data . join ( '\n' ) ] ;
54+ var _this = this ;
5455
5556 try
5657 {
@@ -69,8 +70,6 @@ HTMLFile.prototype.onProcess = function (callback)
6970
7071 this . data . crossOrigin = this . crossOrigin ;
7172
72- var _this = this ;
73-
7473 this . data . onload = function ( )
7574 {
7675 URL . revokeObjectURL ( _this . data . src ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ SVGFile.prototype.onProcess = function (callback)
3131 this . state = CONST . FILE_PROCESSING ;
3232
3333 var svg = [ this . xhrLoader . responseText ] ;
34+ var _this = this ;
3435
3536 try
3637 {
@@ -49,7 +50,6 @@ SVGFile.prototype.onProcess = function (callback)
4950
5051 this . data . crossOrigin = this . crossOrigin ;
5152
52- var _this = this ;
5353 var retry = false ;
5454
5555 this . data . onload = function ( )
You can’t perform that action at this time.
0 commit comments