I'm getting the following error in IE7:
SCRIPT438: Object doesn't support property or method 'test'
I don't receive this in other browsers, including IE8. I'm not testing for IE6. The error actually occurs in IE9, in IE7 Browser Mode, IE7 Standards.
It comes from this code, within the "each" loop:
_uaBlocklist: function(list) {
// list : object with properties that are all regular expressions. Property names are irrelevant.
// Returns true if the user agent is matched in list.
var ua = navigator.userAgent.toLowerCase(),
block = false;
$.each(list, function(p, re) {
if(re && re.test(ua)) {
block = true;
return false; // exit $.each.
}
});
return block;
},
it should possibly be:
if (re && re.test && re.test(ua)) {
or, since IE8 and earlier will always be a flash solution and cannot support native controls, these cases should always be forced to supplied controls.