Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7c0e760

Browse files
authored
Merge pull request#11996 from timhoffm/javascript-cleanup
Minor javascript cleanup
2 parentsf38a600 +ccce651 commit7c0e760

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
}elseif(typeof(MozWebSocket)!=='undefined'){
99
returnMozWebSocket;
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
varfig=this;
227227

228-
varnav_element=$('<div/>')
228+
varnav_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
varfmt=mpl.extensions[ind];
283283
varoption=$(
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
varfig=this;
9595

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp