Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
refactor: replace deprecated jQuery 3.x focus/blur event shorthands
Browse files Browse the repository at this point in the history
  • Loading branch information
RwwL committed Nov 25, 2024
1 parent bfbdcf1 commit 7528920
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 4 additions & 3 deletions demo/js/jquery.flexslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
* Copyright 2012 WooThemes
* Contributing Author: Tyler Smith
SC customizations 0.7:
SC customizations 0.8:
- added swiping flag
- improved itemMargin consideration in carousel's slider.visible calculation
- fixed animationLoop logic disabling nav buttons
- fix positioning issues in setup when slider.visible > 1
- re-call asNav setup if needed after addSlide
- add array-of-items support to addSlide
- replace deprecated jQuery 3.x event handling methods .bind, .unbind, and .delegate
- replace deprecated jQuery 3.x focus/blur event shorthands
*/
;
(function ($) {
Expand Down Expand Up @@ -1170,9 +1171,9 @@
};

// Ensure the slider isn't focussed if the window loses focus.
$( window ).blur( function ( e ) {
$( window ).on('blur', function ( e ) {
focused = false;
}).focus( function ( e ) {
}).on('focus', function ( e ) {
focused = true;
});

Expand Down
Loading

0 comments on commit 7528920

Please sign in to comment.