I am playing with touch start/end/cancel events to change view colors dynamically, and it seems like I can't override the background color of a view if a background color for that view has been previously defined without the aid of a style class.
Take a look at this simple example:
When I click the view, instead of watching its background color change from blue to green, nothing happens.
If on the other hand I move the backgroundColor definition out of the #view block and into the .view one:
I can see the background color change from blue to green.
Why is that happening? And why after the $.removeClass the background color happens to be transparent and not blue? Am I doing something wrong?