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

Skip to content

Commit fd4d913

Browse files
committed
MNT : js style tweaks
1 parent efd0c34 commit fd4d913

File tree

1 file changed

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

1 file changed

+9
-9
lines changed

lib/matplotlib/backends/web_backend/mpl.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ mpl.figure.prototype._init_header = function() {
9494
this.header = titletext[0];
9595
}
9696

97-
mpl.figure.prototype._canvas_extra_style = function(canvas_div){
97+
mpl.figure.prototype._canvas_extra_style = function(canvas_div) {
9898

9999
}
100100

101101

102-
mpl.figure.prototype._root_extra_style = function(canvas_div){
102+
mpl.figure.prototype._root_extra_style = function(canvas_div) {
103103

104104
}
105105

@@ -188,7 +188,7 @@ mpl.figure.prototype._init_toolbar = function() {
188188
return fig.toolbar_button_onmouseover(event['data']);
189189
}
190190

191-
for(var toolbar_ind in mpl.toolbar_items){
191+
for(var toolbar_ind in mpl.toolbar_items) {
192192
var name = mpl.toolbar_items[toolbar_ind][0];
193193
var tooltip = mpl.toolbar_items[toolbar_ind][1];
194194
var image = mpl.toolbar_items[toolbar_ind][2];
@@ -466,18 +466,18 @@ mpl.figure.prototype.toolbar_button_onmouseover = function(tooltip) {
466466
this.message.textContent = tooltip;
467467
};
468468

469-
mpl.debounce_event = function(func, time){
469+
mpl.debounce_event = function(func, time) {
470470
var timer;
471-
return function(event){
471+
return function(event) {
472472
clearTimeout(timer);
473-
timer = setTimeout(function(){ func(event); }, time);
473+
timer = setTimeout(function() { func(event); }, time);
474474
};
475475
}
476476

477-
mpl.debounce_resize = function(func, time){
477+
mpl.debounce_resize = function(func, time) {
478478
var timer;
479-
return function(event, ui){
479+
return function(event, ui) {
480480
clearTimeout(timer);
481-
timer = setTimeout(function(){ func(event, ui); }, time);
481+
timer = setTimeout(function() { func(event, ui); }, time);
482482
};
483483
}

0 commit comments

Comments
 (0)