Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit b964f64

Browse files
committed
Fix deprecated jQuery
Signed-off-by: Kevin Provance <kevin.provance@gmail.com>
1 parent be8131c commit b964f64

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

redux-core/inc/fields/spinner/vendor/jquery.ui.spinner.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ jQuery.uaMatch = function( ua ) {
319319
);
320320
}
321321

322-
buttons.hover(
322+
buttons.on(
323+
'hover',
323324
function() {
324325
_this.buttons.removeClass( hover );
325326
if ( ! options.disabled ) {
@@ -329,10 +330,22 @@ jQuery.uaMatch = function( ua ) {
329330
function() {
330331
$( this ).removeClass( hover );
331332
}
332-
).mousedown( mouseDown ).mouseup( mouseUp ).mouseout( mouseUp );
333+
)
334+
.on(
335+
'mousedown',
336+
mouseDown
337+
)
338+
.on(
339+
'mouseup',
340+
mouseUp )
341+
.on(
342+
'mouseout',
343+
mouseUp
344+
);
333345

334346
if ( msie ) {
335-
buttons.dblclick(
347+
buttons.on(
348+
'dblclick',
336349
function() {
337350
if ( ! options.disabled ) {
338351
_this._change();

redux-core/inc/fields/spinner/vendor/jquery.ui.spinner.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)