Closed ellefsen closed 12 years ago
Thanks for raising this. The problem is that the string method trim
is not supported by IE8 and below. You'd need to implement your own version:
// Add trim function support
if(typeof String.prototype.trim !== 'function') {
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
}
}
There's no reason why this shouldn't be in the script... I'll commit it as soon as I have a moment.
That seems to have solved it, thanks. And a huge thanks for the quick reply!
By the way, great stuff. Exactly what I needed for a super simple Instagram competition we are creating. I'm getting an error in IE8 and older saying "Object doesn't support this property or method." I'm a real js rookie, so I have no idea how to debug it and find a proper solution. Any help would be appreciated.
This is the line that produces the error