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;
if ( this.options.clickhandler ) {
this.$element.on( 'click', '.row li', function () {
lcd.options.clickhandler.call( this, $( this ).data( 'code' ) );
this.$element.on( 'click', '.row li', function ( event ) {
lcd.options.clickhandler.call( this, $( this ).data( 'code' ), event );
} );
}
}