March 5, 2022 in Developer Connection
updating one of my apps, i decided to give the the JS a good dusting to see where i could improve it cause it was a bit long in the tooth. I noticed i was using my own $.Deferred code to know when the animation was done executing (i'm using ips.utils.anim.go() for some of the animation and jquery ui for some of the others). I couldn't exactly remember why i had setup my own defer, so i tested it out. i removed mine, placed a .promise().done() on the jquery ui effects i was using, worked as expected, then i moved onto the IPS ones and it was not working as expected. the promise is returned instantly, long before the animation is done executing. i tested out a few things, but the same result. I went searching for instances where in your code you are waiting for the defer before executing some code, and my code was virtually identical. the expected is the promise to be returned when the animation is done executing like it is done in jquery, other wise there is little value to deferring it in the first place if it is instantly going to return the promise long before the animation is done.
Thanks for your feedback, I have generated an internal report for this. However, since it's really a very low priority issue I cannot guarantee if and when we would make any changes.
Started 2 hours ago
Started Friday at 06:03 PM
Started 3 hours ago