diff options
author | Vasile Postolache <vasioky@mail.ru> | 2015-08-13 11:33:36 +0300 |
---|---|---|
committer | Vasile Postolache <vasioky@mail.ru> | 2015-08-13 11:33:36 +0300 |
commit | b3145e788f1464cdd4df60f2f3faafa321de9e77 (patch) | |
tree | 8df6f7d8a180179780f0bbd745145cca5fbfdaa4 /jquery.multiple.select.js | |
parent | 70b06f8b585d89b2ad3c4521766626e57cd767e4 (diff) | |
download | multiple-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.js | 6 |
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) { |