-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert to old array iteration #48
Conversation
In order to be compatible with old versions of Internet Explorer. ```for (var i in ...)``` doesn't work on IE < 9...
Also the for (var I in X) format is the slowest array iteration you can
|
Are you sure the problem is the
Also, the verbose version using extra variable for length is really pointless in the situation. It adds extra code for no real or even theoretical reason: how many nanoseconds are you going to save, if any? |
I'm pretty sure the problem is the statement itself. The var a = [1,2,3]; About the verbose version using extra variable, I can simplify it if you prefer... |
This is strange, I just launched windows to check it out: Can you confirm the demo app does not work in IE8? |
No I can't. Indeed, the demo works in IE8.. |
To be clear: demo app works, but the module does not work when used in your application? |
That's right. 2013/10/31 Witold Szczerba [email protected]
|
This has to be some kind of problem with your app and looks like it has nothing to do with the module. Even AngularJS does use |
I can't see a single usage of the |
I have just launched a virtual machine with Windows XP with IE8 and tested the I will revert the change anyway, it seems to cause useless confusion. |
Great thanks! I'm trying to reproduce this behaviour in a fiddle but without success for now. |
I doubt you will sucessfully reproduce the issue, because, as referenced documentation says, IE6 and newer do handle |
Hi, yesterday I had a problem with IE11 (haven't tried anything else), basically that 'buffer' array was getting some item called "remove" out of... nowhere, so loop was iterating twice and on that "remove" item entire thing was failing because config and deferred were undefined. I'm no JS expert, but quick a googling revealed that the zen way of iterating items in array is to use plain for loop, not for-each because former will iterate only actual content items and won't accidentally go over properties. I updated both rejectAll and retryAll loops to: error is gone. Thank you! |
Internet Explorer doing strange things? Hard to believe... |
Hi, I haven't tried with other browsers back then, but I was running it with latest Angular 1.2 though, maybe it was a side effect of that, can't say. Then I've changed the current implementation of the filter (adding to responseFilters) to the latest version according to Angular's docs, otherwise another filter wasn't working properly. I think you may want to update it too at some point (there is a fork already) :) Thank you for the nice module :) |
In order to be compatible with old versions of Internet Explorer.
for (var i in ...)
doesn't work on IE < 9...