Merge pull request #305 from amire80/T189582

Pass the event object when calling the click handler
This commit is contained in:
Niklas Laxström
2018-03-15 18:15:50 +02:00
committed by GitHub

View File

@@ -408,8 +408,8 @@
var lcd = this; var lcd = this;
if ( this.options.clickhandler ) { if ( this.options.clickhandler ) {
this.$element.on( 'click', '.row li', function () { this.$element.on( 'click', '.row li', function ( event ) {
lcd.options.clickhandler.call( this, $( this ).data( 'code' ) ); lcd.options.clickhandler.call( this, $( this ).data( 'code' ), event );
} ); } );
} }
} }