jquery-related-selects icon indicating copy to clipboard operation
jquery-related-selects copied to clipboard

var key not found

Open dazuiba opened this issue 15 years ago • 4 comments

there is a bug in master branch: master/src/jquery.relatedselects.js

$.each(opts.selects, function(){ selects.push(key); # var key is not defined });

should be

$.each(opts.selects, function(key){ selects.push(key); });

dazuiba avatar Aug 24 '10 06:08 dazuiba

What's strange is that the bug isn't in the minified version, which works fine :/

kiddailey avatar Feb 13 '11 00:02 kiddailey

Got no idea. It should raise variable not define exception if you review the code line: 33

https://github.com/ehynds/jquery-related-selects/blob/master/src/jquery.relatedselects.js#L33

dazuiba avatar Feb 14 '11 03:02 dazuiba

I think the minified version is the 1.0 branch, at least that's what the comments say

msteudel avatar Mar 23 '11 21:03 msteudel

Thanks to dazuiba, you sovled my problem.

alswl avatar Feb 21 '12 01:02 alswl