From f46aad0a014ddf6f324d1374bc5c80bd80deefeb Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Mon, 8 Jan 2018 12:22:02 +0530 Subject: [PATCH] Use .on('event', handler) pattern instead of .event(handler) --- src/jquery.uls.core.js | 2 +- src/jquery.uls.languagefilter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index ff4077a..1bf78e0 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -225,7 +225,7 @@ } ); // Handle key press events on the menu - this.$menu.keydown( $.proxy( this.keypress, this ) ); + this.$menu.on( 'keydown', $.proxy( this.keypress, this ) ); languagesCount = Object.keys( this.options.languages ).length; lcd = this.$resultsView.lcd( { diff --git a/src/jquery.uls.languagefilter.js b/src/jquery.uls.languagefilter.js index 8691240..cb72b3e 100644 --- a/src/jquery.uls.languagefilter.js +++ b/src/jquery.uls.languagefilter.js @@ -69,7 +69,7 @@ listen: function () { - this.$element.keydown( $.proxy( this.keypress, this ) ); + this.$element.on( 'keydown', $.proxy( this.keypress, this ) ); if ( this.$clear.length ) { this.$clear.on( 'click', $.proxy( this.clear, this ) );