Skip to content

Commit c46699c

Browse files
committed
js: Remove hover state class change.
This can be done with CSS selectors, so there's no need to add a class via JS. The hover effect seems to work without it anyway.
1 parent e9cdc6d commit c46699c

File tree

1 file changed

+0
-10
lines changed
  • lib/matplotlib/backends/web_backend/js

1 file changed

+0
-10
lines changed

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

-10
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,6 @@ mpl.figure.prototype._init_toolbar = function () {
294294
fmt_picker.append(option);
295295
}
296296

297-
// Add hover states to the ui-buttons
298-
$('.ui-button').hover(
299-
function () {
300-
$(this).addClass('ui-state-hover');
301-
},
302-
function () {
303-
$(this).removeClass('ui-state-hover');
304-
}
305-
);
306-
307297
var status_bar = $('<span class="mpl-message"/>');
308298
toolbar.append(status_bar);
309299
this.message = status_bar[0];

0 commit comments

Comments
 (0)