Update gradient.class.js
Update rect.class.js
Update gradient.class.js

code styles error fixed.
Update gradient.class.js

why it didn't tell me all togheter is a mistery.
Code style fix part 2.
Merge pull request #1631 from asturur/Gradient-Fix-Part-2

Fix gradient rendering