Modification system breaks JavaScript code
Posted: Thu Aug 16, 2018 8:40 pm
Hello,
I just stumbled upon this very annoying and serious bug. One of my modifications has a lot of JavaScript/JQuery code, in it I have sth. like
notice the semicolon at the end of the ajax() call. When I reload the modifications, my modified file however contains
seems OC has somehow removed not only the semicolon, but also the closing bracket, which of course breaks all my JS code!
I noticed that if I omit the trailing semicolon, OC doesn't remove the closing bracket. What is the reason for this annoying behaviour?
I'm using OC Version 2.0.3.1
Regards,
Alex
I just stumbled upon this very annoying and serious bug. One of my modifications has a lot of JavaScript/JQuery code, in it I have sth. like
Code: Select all
$.ajax({
...
});
Code: Select all
$.ajax({
...
}
I noticed that if I omit the trailing semicolon, OC doesn't remove the closing bracket. What is the reason for this annoying behaviour?
I'm using OC Version 2.0.3.1
Regards,
Alex