Closed cervengoc closed 8 years ago
Some tests fail because it seems like on circleci I cannot change timeout. 2 of the tests have a longer run time when testing the moves with very large array. I will fix that with reducing those sizes.
I love these changes – I hope my comments are helpful. Thanks, @cervengoc
I think I hit all the comments – but let me know if I missed something. :) Thanks @cervengoc
@brianmhunt OK, thanks for the comments, I think I'm finished now, please check it out. I decided to add a little improvement by adding the possibility to pass a specific DOM node as template. You can see that I used it at the refactored tests, but when I was thinking about it I thought there can also be real life scenarios when it's useful, for example when programatically applying bindings, etc. Hope you don't mind that few characters :)
@brianmhunt Does it matter for testing? :) I'm still using scripts for a wider browser support, that's why I wrote script element by instinct.
It definitely shouldn't matter – though it'd be good to try both, just to be sure...
@brianmhunt I've changed one of the two tests to use template element, and veryfied the tests. Hope it can be finally ready soon, I have less and less time as Christmas gets closer in time.
Awesome, thanks @cervengoc ! Will look at it ASAP.
Any news here?
This was merged already if I remember correctly.
Thanks. But why is it still open, any issues left?
Strange — I am not presented with the option to close it.
... it looks like because it's a pull request that's been merged it's been automatically removed from the list of open Pull Requests (which are 0
).
No issues as far as I know, and I think it's closed (I see 0 pull requests). But if you see any weirdness, ping brianmhunt please.
Incidentally, @cervengoc I've added you as a collaborator on this project so you should be able to make any changes in my absence if needed. :)
With this feature, on every array operation which results moving of several items FastForEach will detect these moves and will not remove/recreate the corresponding DOM structure, but simply move that too.
Scenarios where this is extremely useful: