summaryrefslogtreecommitdiffstats
path: root/jquery.multiple.select.js
diff options
context:
space:
mode:
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) {