Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

IE does not support 'reduce' string method. #90

Closed
drypot opened this Issue Apr 26, 2012 · 3 comments

Comments

Projects
None yet
3 participants

drypot commented Apr 26, 2012

I have error like this.


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Thu, 26 Apr 2012 09:44:47 UTC

Message: Object doesn't support this property or method
Line: 402
Char: 5
Code: 0
URI: http://sleek:8080/lib/superagent.js

drypot commented Apr 26, 2012

It was not string method, but array method. ;)

and I found this work around.

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/array/reduce#Browser_compatibility

Owner

tj commented Apr 26, 2012

haha my bad, habit of not caring for shitty browsers. we dont need to use reduce, a simple for loop will do

enyo commented Nov 19, 2012

Any update on that?

This was referenced Nov 19, 2012

@tj tj closed this in d9271a2 Jan 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment