Closed paulspringett closed 11 years ago
IE8 doesn't support .map() and .trim(). This code will work:
Line 255: Original $newOption.html(splitOptionName($newOption).slice(1).join(options.separator).trim()); New line $newOption.html($.trim(splitOptionName($newOption).slice(1).join(options.separator)));
Line 32 to 34: Original array = $option.text().split(options.separator).map(function(valuePart) { return valuePart.trim(); }); New line array = $.map($option.text().split(options.separator), function(valuePart) { return $.trim(valuePart); });
I will pull a request. Hope it fix your issue!
This has been fixed by @acaron in #10
Calling
.dependentSelects()
in IE8 breaks all JS on the page, see http://jsbin.com/isawov/1/ to reproduce