Hi, i got a class that updates and renders a button, wich i created.

My Button class looks like this:




var Button = function(x,y,width,height,text){

this.rect = new...