Hi!
After upgrading from 2.1.3 to 2.2.0 my site produced numerous javascript errors - and therefore did not work correctly. An update to 2.2.1 did not change the situation! I examined the problem and found out, that all the expressions in curvy braces e.g. {opacity : 0.5} were removed from the templates (the type was set to ‘javascript’). Even changing the template type to ‘static’ did not change the way the template was parsed.
After some testing I found out, that ee assumed, that the expressions in curvy braces were global variables - and if there was no suitable global variable registered - the expression was removed from the template - which actually is a big problem. So maybe a change in the way global variables are parsed led to this problem, but at least in templates of the type ‘javascript’ or ‘static’ there should be variable parsing at all.
I’ve found a workaround: in /system/expressionengine/core/EE_Output.php
changing var $remove_unparsed_variables (line 31) to FALSE saved the problem!
I don’t know if this is just a issue on my server, but if somebody can reproduce this, please file a bug report!