summaryrefslogtreecommitdiffstats
path: root/jquery.multiple.select.js
diff options
context:
space:
mode:
authorVasile Postolache <vasioky@mail.ru>2015-08-13 11:33:36 +0300
committerVasile Postolache <vasioky@mail.ru>2015-08-13 11:33:36 +0300
commitb3145e788f1464cdd4df60f2f3faafa321de9e77 (patch)
tree8df6f7d8a180179780f0bbd745145cca5fbfdaa4 /jquery.multiple.select.js
parent70b06f8b585d89b2ad3c4521766626e57cd767e4 (diff)
downloadmultiple-select-b3145e788f1464cdd4df60f2f3faafa321de9e77.zip
multiple-select-b3145e788f1464cdd4df60f2f3faafa321de9e77.tar.gz
multiple-select-b3145e788f1464cdd4df60f2f3faafa321de9e77.tar.bz2
Added reference to instance in events onClick and onOptgroupClick
Diffstat (limited to 'jquery.multiple.select.js')
-rw-r--r--jquery.multiple.select.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index 6652cc8..2e25261 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -245,7 +245,8 @@
that.options.onOptgroupClick({
label: $(this).parent().text(),
checked: checked,
- children: $children.get()
+ children: $children.get(),
+ instance: that
});
});
this.$selectItems.off('click').on('click', function () {
@@ -255,7 +256,8 @@
that.options.onClick({
label: $(this).parent().text(),
value: $(this).val(),
- checked: $(this).prop('checked')
+ checked: $(this).prop('checked'),
+ instance: that
});
if (that.options.single && that.options.isOpen && !that.options.keepOpen) {