Use .on('event', handler) pattern instead of .event(handler)
This commit is contained in:
@@ -225,7 +225,7 @@
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
// Handle key press events on the menu
|
// 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;
|
languagesCount = Object.keys( this.options.languages ).length;
|
||||||
lcd = this.$resultsView.lcd( {
|
lcd = this.$resultsView.lcd( {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
listen: function () {
|
listen: function () {
|
||||||
|
|
||||||
this.$element.keydown( $.proxy( this.keypress, this ) );
|
this.$element.on( 'keydown', $.proxy( this.keypress, this ) );
|
||||||
|
|
||||||
if ( this.$clear.length ) {
|
if ( this.$clear.length ) {
|
||||||
this.$clear.on( 'click', $.proxy( this.clear, this ) );
|
this.$clear.on( 'click', $.proxy( this.clear, this ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user