Open sophanox opened 4 years ago
I believe this bit of code:
if(opt.dataAttr){ $.each(opt.dataAttr, function (key, item) { opt.$menu.attr('data-' + opt.key, item); }); }
Should in fact be:
if(opt.dataAttr){ $.each(opt.dataAttr, function (key, item) { opt.$menu.attr('data-' + key, item); }); }
I.e., it should reference the key in the loop not the (non-existent) key property of opt? This at least makes it work for me
Cheers
You are right, thanks!
I believe this bit of code:
Should in fact be:
I.e., it should reference the key in the loop not the (non-existent) key property of opt? This at least makes it work for me
Cheers