-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Items not animating after code was minified by Closure Compiler #1492
Comments
@owen-m1 Yes, that's exactly it. I think Angular also uses the Closure Compiler. I can expand a bit on what is happening. If Closure sees an assignment that is never used anywhere it will decide to optimize it away. Unfortunately it doesn't identify that accessing In the Closure Library there is the concept of The |
@thheller Try |
The issue is fixed in |
Unfortunately, this is still an issue in 1.10.1. The whole call to |
I'm investigating an issue where SortableJS doesn't animate when sorting after the code was optimized by the Closure Compiler. This seems to be an issue in the Closure Compiler itself but maybe you have some insight into what might be happening.
The list remains fully sortable it just doesn't animate anymore.
I created a simple repro here:
https://github.com/thheller/sortablejs-closure-issue
Working:
https://thheller.github.io/sortablejs-closure-issue/demo.html
Working but not animating:
https://thheller.github.io/sortablejs-closure-issue/demo-closure.html
The text was updated successfully, but these errors were encountered: