From 119f3565f142af6babe24f70693e62ef7b3899b8 Mon Sep 17 00:00:00 2001 From: Amire80 Date: Wed, 21 Mar 2018 21:58:23 +0200 Subject: [PATCH] Pass the event to ULS core select() Follow up to #305. --- src/jquery.uls.core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index 6a13d98..b900b25 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -288,10 +288,10 @@ * On select handler for search results * @param {string} langCode */ - select: function ( langCode ) { + select: function ( langCode, event ) { this.hide(); if ( this.options.onSelect ) { - this.options.onSelect.call( this, langCode ); + this.options.onSelect.call( this, langCode, event ); } },