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

Skip to content

Commit 7c0e760

Browse files
authored
Merge pull request #11996 from timhoffm/javascript-cleanup
Minor javascript cleanup
2 parents f38a600 + ccce651 commit 7c0e760

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/backends/web_backend/js/mpl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mpl.get_websocket_type = function() {
88
} else if (typeof(MozWebSocket) !== 'undefined') {
99
return MozWebSocket;
1010
} else {
11-
alert('Your browser does not have WebSocket support.' +
11+
alert('Your browser does not have WebSocket support. ' +
1212
'Please try Chrome, Safari or Firefox ≥ 6. ' +
1313
'Firefox 4 and 5 are also supported but you ' +
1414
'have to enable WebSockets in about:config.');
@@ -225,7 +225,7 @@ mpl.figure.prototype._init_canvas = function() {
225225
mpl.figure.prototype._init_toolbar = function() {
226226
var fig = this;
227227

228-
var nav_element = $('<div/>')
228+
var nav_element = $('<div/>');
229229
nav_element.attr('style', 'width: 100%');
230230
this.root.append(nav_element);
231231

@@ -282,7 +282,7 @@ mpl.figure.prototype._init_toolbar = function() {
282282
var fmt = mpl.extensions[ind];
283283
var option = $(
284284
'<option/>', {selected: fmt === mpl.default_extension}).html(fmt);
285-
fmt_picker.append(option)
285+
fmt_picker.append(option);
286286
}
287287

288288
// Add hover states to the ui-buttons

lib/matplotlib/backends/web_backend/js/nbagg_mpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ mpl.figure.prototype.updated_canvas_event = function() {
9393
mpl.figure.prototype._init_toolbar = function() {
9494
var fig = this;
9595

96-
var nav_element = $('<div/>')
96+
var nav_element = $('<div/>');
9797
nav_element.attr('style', 'width: 100%');
9898
this.root.append(nav_element);
9999

0 commit comments

Comments
 (0)