groenroos / minimalect

Minimal select replacement for jQuery
350 stars 52 forks source link

Uncaught TypeError: Cannot read property 'class_group' of undefined #47

Open kusmierz opened 10 years ago

kusmierz commented 10 years ago

I've error Uncaught TypeError: Cannot read property 'class_group' of undefined since 0.9. See http://jsfiddle.net/4kcUs/. Even example from the page doesn't work: http://jsfiddle.net/4kcUs/1/.

groenroos commented 10 years ago

Oop, sorry about that Adam!

You can get rid of this bug by going to line 317 in minimalect.js, and replacing this.options.class_group with m.options.class_group. Let me know if this worked for you, and I'll submit a patch!

kusmierz commented 10 years ago

hi @groenroos

Thanks for your reply. Yeah, I've changed it by myself before and it seems to work now. Hopefully this patch will fix it permanently.

dixitchopra commented 9 years ago

I am still getting this issue.