Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24622f3

Browse files
committed
Merge pull request #9108 from tacaswell/fix_js_bug
Fixed bug caused by wrong scoping
1 parent 052b52b commit 24622f3

File tree

1 file changed

+1
-1
lines changed
  • lib/matplotlib/backends/web_backend

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/web_backend/mpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ mpl.figure = function(figure_id, websocket, ondownload, parent_element) {
7777
};
7878

7979
this.imageObj.onunload = function() {
80-
this.ws.close();
80+
fig.ws.close();
8181
}
8282

8383
this.ws.onmessage = this._make_on_message_function(this);

0 commit comments

Comments
 (0)