Use .on('event', handler) pattern instead of .event(handler)

This commit is contained in:
Santhosh Thottingal
2018-01-08 12:22:02 +05:30
parent e67e1e42ee
commit f46aad0a01
2 changed files with 2 additions and 2 deletions

View File

@@ -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( {

View File

@@ -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 ) );