File tree 1 file changed +6
-3
lines changed
lib/matplotlib/backends/web_backend 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,12 @@ window.onload = function() {
60
60
61
61
/* Free the memory for the previous frames */
62
62
if ( imageObj . src ) {
63
- ( window . URL || window . webkitURL ) . revokeObjectURL ( imageObj . src ) ;
63
+ ( window . URL || window . webkitURL ) . revokeObjectURL (
64
+ imageObj . src ) ;
64
65
}
65
66
66
- imageObj . src = ( window . URL || window . webkitURL ) . createObjectURL ( evt . data ) ;
67
+ imageObj . src = ( window . URL || window . webkitURL ) . createObjectURL (
68
+ evt . data ) ;
67
69
return ;
68
70
}
69
71
} else {
@@ -129,7 +131,8 @@ window.onload = function() {
129
131
var width = Math . abs ( x1 - x0 ) ;
130
132
var height = Math . abs ( y1 - y0 ) ;
131
133
132
- rubberband_context . clearRect ( 0 , 0 , rubberband_canvas . width , rubberband_canvas . height ) ;
134
+ rubberband_context . clearRect (
135
+ 0 , 0 , rubberband_canvas . width , rubberband_canvas . height ) ;
133
136
rubberband_context . strokeRect ( min_x , min_y , width , height ) ;
134
137
break ;
135
138
}
You can’t perform that action at this time.
0 commit comments